Docs: Adjust the plugins_api() DocBlock description to clarify the "second" available hook, plugins_api, and add new information for the "third" hook, plugins_api_result.

See #34035.

Built from https://develop.svn.wordpress.org/trunk@34645


git-svn-id: http://core.svn.wordpress.org/trunk@34609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-09-27 22:23:24 +00:00
parent 6e47f2a1ee
commit e7294234b9
2 changed files with 8 additions and 2 deletions

View File

@ -18,7 +18,13 @@
* as the second parameter. The hook for {@see 'plugins_api_args'} must ensure that * as the second parameter. The hook for {@see 'plugins_api_args'} must ensure that
* an object is returned. * an object is returned.
* *
* The second filter, {@see 'plugins_api'}, is the result that would be returned. * The second filter, {@see 'plugins_api'}, allows a plugin to override the WordPress.org
* Plugin Install API entirely. If `$action` is 'query_plugins', 'plugin_information', or
* 'hot_categories', an object MUST be passed. If `$action` is 'hot_tags`, an array should
* be passed.
*
* Finally, the third filter, {@see 'plugins_api_result'}, makes it possible to filter the
* response object or array, depending on the `$action` type.
* *
* Supported arguments per action: * Supported arguments per action:
* *

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34644'; $wp_version = '4.4-alpha-34645';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.