Title: themes_api
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘themes_api’, false|object|array $override, string $action, object $args )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#wp--skip-link--target)

Filters whether to override the WordPress.org Themes API.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#description)󠁿

Returning a non-false value will effectively short-circuit the WordPress.org API
request.

If `$action` is ‘query_themes’, ‘theme_information’, or ‘feature_list’, an object
MUST be passed. If `$action` is ‘hot_tags’, an array should be passed.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#parameters)󠁿

 `$override`false|object|array

Whether to override the WordPress.org Themes API. Default false.

`$action`string

Requested action. Likely values are `'theme_information'`, `'feature_list'`, or `'
query_themes'`.

`$args`object

Arguments used to query for installer pages from the Themes API.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#source)󠁿

    ```php
    $res = apply_filters( 'themes_api', false, $action, $args );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/theme.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/theme.php#L542)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/theme.php#L542-L542)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#related)󠁿

| Used by | Description | 
| [themes_api()](https://developer.wordpress.org/reference/functions/themes_api/)`wp-admin/includes/theme.php` |

Retrieves theme installer pages from the WordPress.org Themes API.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/themes_api/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fthemes_api%2F)
before being able to contribute a note or feedback.