learndash_is_valid_post_type( string $post_type_slug = '' )
Utility function to check if a post type slug is a valid LearnDash post type.
Description Description
Parameters Parameters
- $post_type_slug
-
(Optional) Post Type slug.
Default value: ''
Return Return
(string) post type key if found.
Source Source
File: includes/class-ldlms-post-types.php
Changelog Changelog
| Version | Description |
|---|---|
| 3.4.1 | Introduced. |