Browse: Home / Functions /

learndash_post_type_has_archive

learndash_post_type_has_archive( string $post_type = '' )

Checks if a LearnDash post type has archive support or not.


Description #


Parameters #

$post_type

(string) (Optional) LearnDash post type slug.

Default value: ''


Return #

(boolean) Returns true if the post type has archive support otherwise false.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.