Filters the theme modification, or 'theme_mod', value on save. The dynamic portion of the hook name, `$name`, refers to the key name of the modification array. For example, 'header_textcolor', 'header_image', and so on depending on the theme options.
$value, $old_value
Sortie :
@param mixed $value The new value of the theme modification. @param mixed $old_value The current value of the theme modification.
// Modifier la valeur avec le filtre 'pre_set_theme_mod_{$name}'
add_filter('pre_set_theme_mod_{$name}', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($value) {
// Modifier la valeur
return $value;
}
Chargement des actualités...