WP_Post_Type::get_rest_controller

SummerySummery

Gets the REST API controller for this post type.

Syntax

WP_Post_Type::get_rest_controller()

DescriptionDescription

Will only instantiate the controller class once per request.

ReturnReturn

(WP_REST_Controller|null) The controller instance, or null if the post type is set not to show in rest.

SourceSource

File: wp-includes/class-wp-post-type.php


			

ChangelogChangelog

Changelog
Version Description
5.3.0 Introduced.
Scroll to Top