SFWD_LMS::add_post_types()
Sets up CPT’s and creates a ‘new SFWD_CPT_Instance()’ of each
Description #
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
@package #
Uses #
Uses | Description |
---|---|
includes/ld-users.php: learndash_get_admin_coupons_capabilities () |
Utility function to return the admin user Coupons capabilities. |
includes/course/ld-course-functions.php: learndash_is_course_shared_steps_enabled () |
Utility function to check if Course Shared steps is enabled. |
includes/ld-users.php: learndash_init_admin_courses_capabilities () |
Initialize the admin user Courses capabilities. |
includes/ld-users.php: learndash_get_admin_courses_capabilities () |
Utility function to return the admin user Courses capabilities. |
includes/ld-users.php: learndash_get_admin_groups_capabilities () |
Utility function to return the admin user Groups capabilities. |
includes/class-ld-lms.php: learndash_taxonomy_capabilities |
Filter Taxonomy Capability. |
includes/ld-groups.php: learndash_is_groups_hierarchical_enabled () |
Utility function to check if Groups post type is hierarchical. |
includes/ld-misc-functions.php: learndash_post_type_has_archive () |
Checks if a LearnDash post type has archive support or not. |
includes/ld-assignment-uploads.php: learndash-cpt-options |
Filters the custom post type arguments. |
includes/class-ld-custom-label.php: LearnDash_Custom_Label::get_label () |
Get label based on key name. |
includes/class-ld-custom-label.php: learndash_get_custom_label_lower () |
Utility function to get a custom field label lowercase. |
includes/class-ld-lms.php: learndash_post_args |
Filters post arguments used to create the custom post types and everything associated with them. |
includes/ld-groups.php: learndash_is_admin_user () |
Checks if a user has the admin capabilities. |
includes/class-ld-lms.php: learndash_post_args_groups |
Filters the post type registration arguments. |
includes/class-ldlms-post-types.php: learndash_get_post_type_slug () | |
includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::__construct () |
Sets up properties for CPT to be used in plugins |
includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () |
Static function to get a Section Setting value. |
includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting_select_option_label () |
From a section settings you can access the label used on a select by the option key. |
includes/rest-api/class-ld-rest-api.php: LearnDash_REST_API::enabled () |
Check if REST is enabled for post type. |
includes/rest-api/class-ld-rest-api.php: LearnDash_REST_API::gutenberg_enabled () |
Check if Gutenberg editor is enabled for post type. |