WP_REST_Response::set_matched_handler() public WP 4.4.0
Sets the handler that was responsible for generating the response.
{} It's a method of the class: WP_REST_Response{}
No Hooks.
Return
Null. Nothing.
Usage
$WP_REST_Response = new WP_REST_Response(); $WP_REST_Response->set_matched_handler( $handler );
- $handler(array) (required)
- The matched handler.
Changelog
Since 4.4.0 | Introduced. |
Code of WP_REST_Response::set_matched_handler() WP REST Response::set matched handler WP 5.6
public function set_matched_handler( $handler ) {
$this->matched_handler = $handler;
}