template_include

FILTER wp-includes\template-loader.php (ligne 114) github
Filters the path of the current template before including it.

Paramètres

Entrée :
$template
Sortie :
@param string $template The path of the template to include.

Utilisation

// Modifier la valeur avec le filtre 'template_include'
add_filter('template_include', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($template) {
    // Modifier la valeur
    return $template;
}

Actualités

Chargement des actualités...