Docs: Also clarify the expected element types depending on the value of $action
in the hook doc for the plugins_api
filter.
See [34763] for context. See #34035. git-svn-id: https://develop.svn.wordpress.org/trunk@34764 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4c6d50413b
commit
80e4265277
@ -129,8 +129,8 @@ function plugins_api( $action, $args = array() ) {
|
||||
*
|
||||
* Passing a non-false value will effectively short-circuit the WordPress.org API request.
|
||||
*
|
||||
* 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.
|
||||
* If `$action` is 'query_plugins' or 'plugin_information', an object MUST be passed.
|
||||
* If `$action` is 'hot_tags` or 'hot_categories', an array should be passed.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user