single_post_title

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

Paramètres

Entrée :
$prefix = '', $display = true
Sortie :
@param string[] $title_array Array of parts of the page title.
@param string $title       Page title.
@param string $sep         Title separator.
@param string $seplocation Location of the separator (either 'left' or 'right').
@param string $prefix  Optional. What to display before the title.
@param bool   $display Optional. Whether to display or retrieve title. Default true.
@return string|void Title when retrieving.

Utilisation

// Utilisation de la fonction single_post_title
$result = single_post_title($prefix = '', $display = true);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...