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-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/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-ldlms-post-types.php: LDLMS_Post_Types::get_post_type_slug () |
Utility function to return the post type slug(s). This is to prevent hard-coding of the slug(s) throughout the code files. |
includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::__construct () |
Sets up properties for CPT to be used in plugins |
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. |