Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_prepare_theme ›

Desde5.0.0
Obsoleton/a
apply_filters( 'rest_prepare_theme', $response, $theme, $request )
Parâmetros: (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
Definido em:
Codex:

Filters theme data returned from the REST API.





Fonte

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