learndash_is_sample

learndash_is_sample( int|WP_Post $post )

Checks if a lesson, topic, or quiz is a sample or not.


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.