single_cat_title

FUNCTION wp-includes\general-template.php (ligne 1537) github
Filters the post type archive title.

Paramètres

Entrée :
$prefix = '', $display = true
Sortie :
@param string $post_type_name Post type 'name' label.
@param string $post_type      Post type.
@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_cat_title
$result = single_cat_title($prefix = '', $display = true);

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

Actualités

Chargement des actualités...