learndash_comments_open learndash_comments_open( boolean $open, int|WP_Post $post_id ) Ensures the comments are open for assignments. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses 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 # File: includes/ld-misc-functions.php Changelog # Changelog Version Description 2.1.0 Introduced. Related # Namespace # global @package # LearnDash / Misc Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_post_type_supports_comments () Checks whether a learndash post type supports comments or not. includes/ld-misc-functions.php: learndash_focus_mode_comments Filters the status of comments in the focus mode.
Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_post_type_supports_comments () Checks whether a learndash post type supports comments or not. includes/ld-misc-functions.php: learndash_focus_mode_comments Filters the status of comments in the focus mode.