learndash_is_course_post learndash_is_course_post( WP_Post|int|null $post ) Returns true if it’s a course post. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Used By Description # Parameters # $post (WP_Post|int|null) (Required) Post or Post ID. Return # (bool) Source # File: includes/course/ld-course-functions.php Changelog # Changelog Version Description 4.1.0 Introduced. Related # Namespace # global @package # LearnDash / Course Uses # Uses Uses Description 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. Used By # Used By Used By Description includes/deprecated/4.5.0/functions.php: learndash_get_payment_button_label () Maps the payment button label. includes/payments/ld-login-registration-functions.php: learndash_registration_output () LearnDash LD30 Shows registration form for user registration
Uses # Uses Uses Description 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.
Used By # Used By Used By Description includes/deprecated/4.5.0/functions.php: learndash_get_payment_button_label () Maps the payment button label. includes/payments/ld-login-registration-functions.php: learndash_registration_output () LearnDash LD30 Shows registration form for user registration