learndash_get_single_post

learndash_get_single_post( string $post_type = '' )

Gets a single WP_Post for a given learndash post type.


Description #


Parameters #

$post_type

(string) (Optional) The post type slug.

Default value: ''


Return #

(WP_Post|void) The WP_Post object for a given post type.


Source #

File: includes/ld-misc-functions.php