learndash_get_single_post( string $post_type = '' )
Gets a single WP_Post
for a given learndash post type.
Description Description
Parameters Parameters
- $post_type
-
(Optional) The post type slug.
Default value: ''
Return Return
(WP_Post|void) The WP_Post
object for a given post type.
Source Source
File: includes/ld-misc-functions.php