post_type_archive_title

FUNCTION wp-includes\general-template.php (ligne 1497) github
Filters the page title for a single post.

Paramètres

Entrée :
$prefix = '', $display = true
Sortie :
@param string  $_post_title The single post page title.
@param WP_Post $_post       The current post.
@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, null when displaying or failure.

Utilisation

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

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

Actualités

Chargement des actualités...