Browse: Home / Classes / LD_REST_Assignments_Controller_V2 /

LD_REST_Assignments_Controller_V2::check_is_post_type_allowed

LD_REST_Assignments_Controller_V2::check_is_post_type_allowed( WP_Post_Type|string $post_type )

Checks if a given post type can be viewed or managed.


Description #


Parameters #

$post_type

(WP_Post_Type|string) (Required) Post type name or object.


Return #

(bool) Whether the post type is allowed in REST.


Source #

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


Changelog #

Changelog
Version Description
4.10.3 Introduced.