Filters plugin data for a REST API response.
$responseWP_REST_Response$itemarray$requestWP_REST_Requestwp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:619WP_REST_Plugins_Controller::prepare_item_for_response() * @since 5.5.0 * * @param WP_REST_Response $response The response object. * @param array $item The plugin item from {@see get_plugin_data()}. * @param WP_REST_Request $request The request object. */ return apply_filters( 'rest_prepare_plugin', $response, $item, $request ); } /** * Prepares links for the request. * * @since 5.5.0Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.