learndash_is_sample learndash_is_sample( int|WP_Post $post ) Checks if a lesson, topic, or quiz is a sample or not. ContentsDescription Parameters Return Source Changelog Related Uses Used By Description # Parameters # $post (int|WP_Post) (Required) The WP_Post object or Post ID. Return # (boolean) Returns true if the post is sample otherwise false. Source # File: includes/ld-misc-functions.php Changelog # Changelog Version Description 2.1.0 Introduced. Related # Uses # Uses Uses Description includes/course/ld-course-functions.php: learndash_is_course_builder_enabled () Utility function to check if Course Builder is enabled. includes/ld-misc-functions.php: learndash_get_setting () Gets the LearnDash setting for a post. includes/ld-misc-functions.php: learndash_is_sample () Checks if a lesson, topic, or quiz is a sample or not. includes/ld-misc-functions.php: learndash_lesson_is_sample Filters whether the lesson is a sample lesson or not. includes/class-ldlms-post-types.php: learndash_get_post_type_slug () This function is documented in includes/class-ldlms-post-types.php includes/course/ld-course-steps-functions.php: learndash_course_get_single_parent_step () Gets the single parent step ID for a given step ID in a course. includes/course/ld-course-functions.php: learndash_get_course_id () Gets the course ID for a resource. Used By # Used By Used By Description includes/ld-misc-functions.php: learndash_is_sample () Checks if a lesson, topic, or quiz is a sample or not. includes/class-ld-cpt.php: SFWD_CPT::loop_shortcode () Shortcode that generates a list of items in this post type includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::template_content () Generate output for courses, lessons, topics, quizzes Filter callback for ‘the_content’ (wp core filter) includes/course/ld-course-navigation.php: learndash_get_course_lessons_list () Gets the lesson list output for a course. includes/course/ld-course-navigation.php: learndash_get_course_quiz_list () Gets the quiz list output for a course. includes/course/ld-course-navigation.php: learndash_get_lesson_quiz_list () Gets the quiz list output for a lesson/topic. includes/course/ld-course-user-functions.php: sfwd_lms_has_access_fn () Checks whether a user has access to a course.
Uses # Uses Uses Description includes/course/ld-course-functions.php: learndash_is_course_builder_enabled () Utility function to check if Course Builder is enabled. includes/ld-misc-functions.php: learndash_get_setting () Gets the LearnDash setting for a post. includes/ld-misc-functions.php: learndash_is_sample () Checks if a lesson, topic, or quiz is a sample or not. includes/ld-misc-functions.php: learndash_lesson_is_sample Filters whether the lesson is a sample lesson or not. includes/class-ldlms-post-types.php: learndash_get_post_type_slug () This function is documented in includes/class-ldlms-post-types.php includes/course/ld-course-steps-functions.php: learndash_course_get_single_parent_step () Gets the single parent step ID for a given step ID in a course. includes/course/ld-course-functions.php: learndash_get_course_id () Gets the course ID for a resource.
Used By # Used By Used By Description includes/ld-misc-functions.php: learndash_is_sample () Checks if a lesson, topic, or quiz is a sample or not. includes/class-ld-cpt.php: SFWD_CPT::loop_shortcode () Shortcode that generates a list of items in this post type includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::template_content () Generate output for courses, lessons, topics, quizzes Filter callback for ‘the_content’ (wp core filter) includes/course/ld-course-navigation.php: learndash_get_course_lessons_list () Gets the lesson list output for a course. includes/course/ld-course-navigation.php: learndash_get_course_quiz_list () Gets the quiz list output for a course. includes/course/ld-course-navigation.php: learndash_get_lesson_quiz_list () Gets the quiz list output for a lesson/topic. includes/course/ld-course-user-functions.php: sfwd_lms_has_access_fn () Checks whether a user has access to a course.