apply_filters( 'themes_api_args', object $args, string $action )
- Since
- 2.8.0
Filters arguments used to query for installer pages from the WordPress.org Themes API.
Description
Important: An object MUST be returned to this filter.
Parameters
$argsobject- Arguments used to query for installer pages from the WordPress.org Themes API.
$actionstring- Requested action. Likely values are 'theme_information', 'feature_list', or 'query_themes'.
Where this hook fires · 1
wp-admin/includes/theme.php:525themes_api()
Source code
* @since 2.8.0 * * @param object $args Arguments used to query for installer pages from the WordPress.org Themes API. * @param string $action Requested action. Likely values are 'theme_information', * 'feature_list', or 'query_themes'. */ $args = apply_filters( 'themes_api_args', $args, $action ); /** * Filters whether to override the WordPress.org Themes API. * * Returning a non-false value will effectively short-circuit the WordPress.org API request. *Changelog
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.