| 312 | * Supported arguments per action: |
| 313 | * |
| 314 | * | Argument Name | query_plugins | theme_information | hot_tags | feature_list | |
| 315 | * | -------------------| ------------- | ----------------- | -------- | -------------- | |
| 316 | * | `$slug` | No | Yes | No | No | |
| 317 | * | `$per_page` | Yes | No | No | No | |
| 318 | * | `$page` | Yes | No | No | No | |
| 319 | * | `$number` | No | No | Yes | No | |
| 320 | * | `$search` | Yes | No | No | No | |
| 321 | * | `$tag` | Yes | No | No | No | |
| 322 | * | `$author` | Yes | No | No | No | |
| 323 | * | `$user` | Yes | No | No | No | |
| 324 | * | `$browse` | Yes | No | No | No | |
| 325 | * | `$locale` | Yes | Yes | No | No | |
| 326 | * | `$fields` | Yes | Yes | No | No | |
| 327 | * |
314 | | * @param string $action The requested action. Likely values are 'theme_information', |
315 | | * 'feature_list', or 'query_themes'. |
316 | | * @param array|object $args Optional. Arguments to serialize for the Theme Info API. |
317 | | * @return mixed |
| 330 | * @param string $action API action to perform: 'query_themes', 'theme_information', |
| 331 | * 'hot_tags' or 'feature_list'. |
| 332 | * @param array|object $args { |
| 333 | * Optional. Array or object of arguments to serialize for the Plugin Info API. |
| 334 | * |
| 335 | * @type string $slug The plugin slug. |
| 336 | * @type int $per_page Number of themes per page. Default 24. |
| 337 | * @type int $page Number of current page. |
| 338 | * @type int $number Number of tags to be queried. |
| 339 | * @type string $search A search term. |
| 340 | * @type string $tag Tag to filter themes. |
| 341 | * @type string $author Username of an author to filter themes. |
| 342 | * @type string $user Username to query for their favorites. |
| 343 | * @type string $browse Browse view: 'featured', 'popular', 'updated', 'favorites'. |
| 344 | * @type string $locale Locale to provide context-sensitive results. Default is the value of get_locale(). |
| 345 | * @type array $fields { |
| 346 | * Array of fields which should or should not be returned. |
| 347 | * |
| 348 | * @type bool $description Whether to return the theme full description. Default false. |
| 349 | * @type bool $sections Whether to return the theme readme sections: description, installation, |
| 350 | * FAQ, screenshots, other notes, and changelog. Default false. |
| 351 | * @type bool $rating Whether to return the rating in percent and total number of ratings. |
| 352 | * Default false. |
| 353 | * @type bool $ratings Whether to return the number of rating for each star (1-5). Default false. |
| 354 | * @type bool $downloaded Whether to return the download count. Default false. |
| 355 | * @type bool $downloadlink Whether to return the download link for the package. Default false. |
| 356 | * @type bool $last_updated Whether to return the date of the last update. Default false. |
| 357 | * @type bool $tags Whether to return the assigned tags. Default false. |
| 358 | * @type bool $homepage Whether to return the theme homepage link. Default false. |
| 359 | * @type bool $screenshots Whether to return the screenshots. Default false. |
| 360 | * @type int $screenshot_count Number of screenshots to return. Default 1. |
| 361 | * @type bool $screenshot_url Whether to return the URL of the first screenshot. Default false. |
| 362 | * @type bool $photon_screenshots Whether to return the screenshots via Photon. Default false. |
| 363 | * @type bool $template Whether to return the slug of the parent theme. Default false. |
| 364 | * @type bool $parent Whether to return the slug, name and homepage of the parent theme. Default false. |
| 365 | * @type bool $versions Whether to return the list of all available versions. Default false. |
| 366 | * @type bool $theme_url Whether to return theme's URL. Default false. |
| 367 | * @type bool $extended_author Whether to return nicename or nicename and display name. Default false. |
| 368 | * } |
| 369 | * } |
| 370 | * @return object|array|WP_Error Response object or array on success, WP_Error on failure. See the |
| 371 | * {@link https://developer.wordpress.org/reference/functions/themes_api/ function reference article} |
| 372 | * for more information on the make-up of possible return objects depending on the value of `$action`. |