WP_REST_Posts_Controller::check_template( string $template, WP_REST_Request $request )
Checks whether the template is valid for the given post.
Parameters
- $template
-
(Required) Page template filename.
- $request
-
(Required) Request.
Return
(bool|WP_Error) True if template is still valid or if the same as existing value, or false if template not supported.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |