Core Function
View Source on Trac ↗ themes_api()
themes_api( mixed $action, mixed $args = array() ) Retrieves theme installer pages from the WordPress.org Themes API.
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $action API action to perform: Accepts 'query_themes', 'theme_information', 'hot_tags' or 'feature_list'. Required |
| mixed | (array | object) $args { Optional. Array or object of arguments to serialize for the Themes API. Default empty array. Required |
Return Value
((object)
(object | array | WP_Error) Response object or array on success, WP_Error on failure. See the
{@link https://developer.wordpress.org/reference/functions/themes_api/ function reference article}
for more information on the make-up of possible return objects depending on the value of `$action`.
Function Information
Since Version
2.8.0
Source File
wp-admin/includes/theme.php
Advertisement