plugins_api_result filter-hook . WP 2.7.0
Filters the Plugin Installation API response results.
Usage
add_filter( 'plugins_api_result', 'filter_function_name_1276', 10, 3 ); function filter_function_name_1276( $res, $action, $args ){ // filter... return $res; }
- $res(object/WP_Error)
- Response object or WP_Error.
- $action(string)
- The type of information being requested from the Plugin Installation API.
- $args(object)
- Plugin API arguments.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
wp-admin/includes/plugin-install.php 234
return apply_filters( 'plugins_api_result', $res, $action, $args );