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( $post_type_slug = '' )

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


Description #


Parameters #

(string) (Required) post_type_slug The post type slug to check.


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.