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: ''


Top ↑

Return Return

(string) post type key if found.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.