learndash_get_single_post( string $post_type = '' )
Gets a single WP_Post
for a given learndash post type.
Parameters #
- $post_type
-
(string)
(Optional)
The post type slug.
Default value: ''
Return #
(WP_Post|void) The WP_Post
object for a given post type.