learndash_post_type_has_archive learndash_post_type_has_archive( string $post_type = '' ) Checks if a LearnDash post type has archive support or not. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Used By Description # Parameters # $post_type (string) (Optional) LearnDash post type slug. Default value: '' Return # (boolean) Returns true if the post type has archive support otherwise false. Source # File: includes/ld-misc-functions.php Changelog # Changelog Version Description 3.0.0 Introduced. Related # Namespace # global @package # LearnDash / Misc Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_post_type_has_archive Filters whether a post type has archive or not. includes/class-ldlms-post-types.php: learndash_get_post_type_slug () includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () Static function to get a Section Setting value. Used By # Used By Used By Description includes/gutenberg/lib/class-ld-rest-gutenberg-posts-controller.php: LD_REST_Posts_Gutenberg_Controller::get_items_permissions_check () Checks whether a given request has permission to read post type. includes/ld-misc-functions.php: learndash_remove_lessons_and_quizzes_page () Redirects to the home page if the user lands on archive pages for lesson or quiz post types. includes/rest-api/v2/class-ld-rest-posts-controller.php: LD_REST_Posts_Controller_V2::rest_post_type_has_archive () Check if we are allowing the post type to be publicly viewed without restrictions to course_id. includes/class-ld-lms.php: SFWD_LMS::add_post_types () Sets up CPT’s and creates a ‘new SFWD_CPT_Instance()’ of each includes/class-ld-lms.php: SFWD_LMS::wp_shutdown () Shutdown actions.
Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_post_type_has_archive Filters whether a post type has archive or not. includes/class-ldlms-post-types.php: learndash_get_post_type_slug () includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () Static function to get a Section Setting value.
Used By # Used By Used By Description includes/gutenberg/lib/class-ld-rest-gutenberg-posts-controller.php: LD_REST_Posts_Gutenberg_Controller::get_items_permissions_check () Checks whether a given request has permission to read post type. includes/ld-misc-functions.php: learndash_remove_lessons_and_quizzes_page () Redirects to the home page if the user lands on archive pages for lesson or quiz post types. includes/rest-api/v2/class-ld-rest-posts-controller.php: LD_REST_Posts_Controller_V2::rest_post_type_has_archive () Check if we are allowing the post type to be publicly viewed without restrictions to course_id. includes/class-ld-lms.php: SFWD_LMS::add_post_types () Sets up CPT’s and creates a ‘new SFWD_CPT_Instance()’ of each includes/class-ld-lms.php: SFWD_LMS::wp_shutdown () Shutdown actions.