learndash_remove_comments learndash_remove_comments( array $comments = array(), int $post_id ) Removes all comments for learndash post types. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Description # Fires on ‘comments_array’ hook. Parameters # $comments (array) (Optional) An array of comments for a post ID. Default value: array() $post_id (int) (Optional) Post ID. Return # (array) An empty array. 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 themes/class-ld-themes-register.php: LearnDash_Theme_Register::get_active_theme_key () Get the Slug of the current active theme. 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. includes/class-ldlms-post-types.php: learndash_get_post_types () includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () Static function to get a Section Setting value.
Uses # Uses Uses Description themes/class-ld-themes-register.php: LearnDash_Theme_Register::get_active_theme_key () Get the Slug of the current active theme. 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. includes/class-ldlms-post-types.php: learndash_get_post_types () includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () Static function to get a Section Setting value.