Browse: Home / Functions /

learndash_is_valid_post_type

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 #


Parameters #

$post_type_slug

(string) (Optional) Post Type slug.

Default value: ''


Return #

(bool) true if post type key is found.


Source #

File: includes/class-ldlms-post-types.php


Changelog #

Changelog
Version Description
3.4.1 Introduced.