wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_prepare_theme › WordPress Filter Hooks

Since5.0.0
Deprecatedn/a
apply_filters( 'rest_prepare_theme', $response, $theme, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (WP_Theme) $theme Theme object used to create response.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
Defined at:
Codex:

Filters theme data returned from the REST API.





Source

return apply_filters( 'rest_prepare_theme', $response, $theme, $request );