Browse: Home / Classes / LD_REST_Posts_Controller_V2 /

LD_REST_Posts_Controller_V2::rest_post_type_has_archive

LD_REST_Posts_Controller_V2::rest_post_type_has_archive( string $post_type_slug = '' )

Check if we are allowing the post type to be publicly viewed without restrictions to course_id.


Description #


Parameters #

$post_type_slug

(string) (Optional) The post type slug to check.

Default value: ''


Return #

(bool) true if has archive.


Source #

File: includes/rest-api/v2/class-ld-rest-posts-controller.php


Changelog #

Changelog
Version Description
3.3.0 Introduced.