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



rest_prepare_plugin › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'rest_prepare_plugin', $response, $item, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (array) $item The plugin item from {@see get_plugin_data()}.
    Required: Yes
  • (WP_REST_Request) $request The request object.
    Required: Yes
Defined at:
Codex:

Filters plugin data for a REST API response.





Source

return apply_filters( 'rest_prepare_plugin', $response, $item, $request );