learndash_course_grid_is_learndash_post_type( string $post_type )
Checks if a post type is a LearnDash post type.
Description #
This function determines whether a given post type belongs to LearnDash by comparing it against a list of known LearnDash post types.
Parameters #
- $post_type
-
(string) (Required) The post type to check.
Return #
(boolean) True if it's a LearnDash post type, false otherwise.
Source #
Changelog #
| Version | Description |
|---|---|
| 4.21.4 | Introduced. |