plugins_api_result WordPress Filter Hook

The plugins_api_result hook is called whenever the result of an API request is received from a plugin repository. This hook gives developers the opportunity to process the data received before it is passed to the WordPress core.

apply_filters( 'plugins_api_result', object|WP_Error $res, string $action, object $args ) #

Filters the Plugin Installation API response results.


Parameters

$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.


Top ↑

Source

File: wp-admin/includes/plugin-install.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.