WP_REST_Response::set_matched_handler
Sets the handler that was responsible for generating the response.
Method of the class: WP_REST_Response{}
No Hooks.
Returns
null. Nothing (null).
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. |
WP_REST_Response::set_matched_handler() WP REST Response::set matched handler code WP 6.9
public function set_matched_handler( $handler ) {
$this->matched_handler = $handler;
}