customize_load_themes

FILTER wp-includes\class-wp-customize-manager.php (ligne 5986) github
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()`.

Paramètres

Entrée :
$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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...