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