25 | | * @param string $action |
26 | | * @param array|object $args Optional. Arguments to serialize for the Plugin Info API. |
27 | | * @return object plugins_api response object on success, WP_Error on failure. |
| 25 | * @param string $action Action to perform: 'query_plugins', 'plugin_information', |
| 26 | * 'hot_tags' or 'hot_categories'. |
| 27 | * @param array|object $args { |
| 28 | * Optional. Array or object of arguments to serialize for the Plugin Info API. |
| 29 | * |
| 30 | * @type string $slug The slug of a plugin. |
| 31 | * @type int $per_page Number of plugins per page. Default 24. |
| 32 | * @type int $number Number of tags or categories to be queried. |
| 33 | * @type string $locale Locale to provide context-sensitive results. Default get_locale(). |
| 34 | * @type bool $is_ssl Whether links should be returned with http or https. Default false. |
| 35 | * @type array $fields { |
| 36 | * Array of fields which should or should not be returned. |
| 37 | * |
| 38 | * @type bool $short_description Default true. |
| 39 | * @type bool $description Default false. |
| 40 | * @type bool $sections Default true. |
| 41 | * @type bool $tested Default true. |
| 42 | * @type bool $requires Default true. |
| 43 | * @type bool $rating Default true. |
| 44 | * @type bool $ratings Default true. |
| 45 | * @type bool $downloaded Default true. |
| 46 | * @type bool $downloadlink Default true. |
| 47 | * @type bool $last_updated Default true. |
| 48 | * @type bool $added Default true. |
| 49 | * @type bool $tags Default true. |
| 50 | * @type bool $compatibility Default true. |
| 51 | * @type bool $homepage Default true. |
| 52 | * @type bool $versions Default false. |
| 53 | * @type bool $donate_link Default true. |
| 54 | * @type bool $reviews Default false. |
| 55 | * @type bool $banners Default false. |
| 56 | * @type bool $icons Default false. |
| 57 | * @type bool $active_installs Default false. |
| 58 | * @type bool $group Default false. |
| 59 | * @type bool $contributors Default false. |
| 60 | * } |
| 61 | * } |
| 62 | * @return object|WP_Error Response object on success, WP_Error on failure. |