wp_title_parts

FILTER wp-includes\general-template.php (ligne 1445) github
Filters the parts of the page title.

Paramètres

Entrée :
$title_array
Sortie :
@param string[] $title_array Array of parts of the page title.

Utilisation

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

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

Actualités

Chargement des actualités...