apply_filters( ‘customize_load_themes’, array|stdClass $themes, array $args, WP_Customize_Manager $manager )

Filters the theme data loaded in the customizer.

Description

This allows theme data to be loading from an external source, or modification of data loaded from wp_prepare_themes_for_js() or WordPress.org via themes_api().

See also

Parameters

$themesarray|stdClass
Nested array or object of theme data.
$argsarray
List of arguments, such as page, search term, and tags to query for.
$managerWP_Customize_Manager
Instance of Customize manager.

Source

$themes = apply_filters( 'customize_load_themes', $themes, $args, $this );

Changelog

VersionDescription
4.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.