A WordPress-centric search engine for devs and theme authors



rest_prepare_plugin ›

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 the plugin data for a response.





Source

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