Changeset 58873
- Timestamp:
- 08/09/2024 12:16:33 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r58813 r58873 21 21 * The second filter, {@see 'plugins_api'}, allows a plugin to override the WordPress.org 22 22 * Plugin Installation API entirely. If `$action` is 'query_plugins' or 'plugin_information', 23 * an object MUST be passed. If `$action` is 'hot_tags' or 'hot_categories', an array MUST 24 * be passed. 23 * an object MUST be passed. If `$action` is 'hot_tags', an array MUST be passed. 25 24 * 26 25 * Finally, the third filter, {@see 'plugins_api_result'}, makes it possible to filter the … … 29 28 * Supported arguments per action: 30 29 * 31 * | Argument Name | query_plugins | plugin_information | hot_tags | hot_categories |32 * | -------------------- | :-----------: | :----------------: | :------: | :------------: |33 * | `$slug` | No | Yes | No | No |34 * | `$per_page` | Yes | No | No | No |35 * | `$page` | Yes | No | No | No |36 * | `$number` | No | No | Yes | Yes |37 * | `$search` | Yes | No | No | No |38 * | `$tag` | Yes | No | No | No |39 * | `$author` | Yes | No | No | No |40 * | `$user` | Yes | No | No | No |41 * | `$browse` | Yes | No | No | No |42 * | `$locale` | Yes | Yes | No | No |43 * | `$installed_plugins` | Yes | No | No | No |44 * | `$is_ssl` | Yes | Yes | No | No |45 * | `$fields` | Yes | Yes | No | No |30 * | Argument Name | query_plugins | plugin_information | hot_tags | 31 * | -------------------- | :-----------: | :----------------: | :------: | 32 * | `$slug` | No | Yes | No | 33 * | `$per_page` | Yes | No | No | 34 * | `$page` | Yes | No | No | 35 * | `$number` | No | No | Yes | 36 * | `$search` | Yes | No | No | 37 * | `$tag` | Yes | No | No | 38 * | `$author` | Yes | No | No | 39 * | `$user` | Yes | No | No | 40 * | `$browse` | Yes | No | No | 41 * | `$locale` | Yes | Yes | No | 42 * | `$installed_plugins` | Yes | No | No | 43 * | `$is_ssl` | Yes | Yes | No | 44 * | `$fields` | Yes | Yes | No | 46 45 * 47 46 * @since 2.7.0 48 47 * 49 48 * @param string $action API action to perform: 'query_plugins', 'plugin_information', 50 * 'hot_tags' or 'hot_categories'.49 * or 'hot_tags'. 51 50 * @param array|object $args { 52 51 * Optional. Array or object of arguments to serialize for the Plugin Info API. … … 92 91 * @type bool $icons Whether to return the icon links. Default false. 93 92 * @type bool $active_installs Whether to return the number of active installations. Default false. 94 * @type bool $group Whether to return the assigned group. Default false.95 93 * @type bool $contributors Whether to return the list of contributors. Default false. 96 94 * } … … 137 135 * 138 136 * If `$action` is 'query_plugins' or 'plugin_information', an object MUST be passed. 139 * If `$action` is 'hot_tags' or 'hot_categories', an array should be passed.137 * If `$action` is 'hot_tags', an array should be passed. 140 138 * 141 139 * @since 2.7.0
Note: See TracChangeset
for help on using the changeset viewer.