Filters theme data before it is prepared for JavaScript. Passing a non-empty array will result in wp_prepare_themes_for_js() returning early with that value instead.
array(
Sortie :
@param array $prepared_themes An associative array of theme data. Default empty array. @param WP_Theme[]|null $themes An array of theme objects to prepare, if any. @param string $current_theme The active theme slug.
// Modifier la valeur avec le filtre 'pre_prepare_themes_for_js'
add_filter('pre_prepare_themes_for_js', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array() {
// Modifier la valeur
return array(;
}
Chargement des actualités...