customize_load_themes WordPress Filter Hook

The customize_load_themes WordPress hook is used to load the available themes for a site. This hook is triggered when the Customizer is first loaded.

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().

Top ↑

See also


Top ↑

Parameters

$themes

(array|stdClass)Nested array or object of theme data.

$args

(array)List of arguments, such as page, search term, and tags to query for.

$manager

(WP_Customize_Manager)Instance of Customize manager.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More