Filters the theme data loaded in the customizer. 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()`.
$themes, $args, $this
Sortie :
@param array|stdClass $themes Nested array or object of theme data. @param array $args List of arguments, such as page, search term, and tags to query for. @param WP_Customize_Manager $manager Instance of Customize manager.
// Modifier la valeur avec le filtre 'customize_load_themes'
add_filter('customize_load_themes', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($themes) {
// Modifier la valeur
return $themes;
}
Chargement des actualités...