Filters the active theme directory path.
$template_dir, $template, $theme_root
Sortie :
@param string $template_dir The path of the active theme directory. @param string $template Directory name of the active theme. @param string $theme_root Absolute path to the themes directory.
// Modifier la valeur avec le filtre 'template_directory'
add_filter('template_directory', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($template_dir) {
// Modifier la valeur
return $template_dir;
}
Chargement des actualités...