learndash_comments_open( boolean $open, int|WP_Post $post_id )
Ensures the comments are open for assignments.
Description Description
Fires on comments_open
hook.
Parameters Parameters
- $open
-
(Required) Whether the current post is open for comments.
- $post_id
-
(Optional) The post ID or
WP_Post
object. Default 0.
Return Return
(int|WP_Post) $post_id The post ID or WP_Post object.
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |