is_multi_author

FUNCTION wp-includes\author-template.php (ligne 467) github
Filters the query arguments for the list of all authors of the site.

Paramètres

Entrée :
N/A
Sortie :
@param array $query_args  The query arguments for get_users().
@param array $parsed_args The arguments passed to wp_list_authors() combined with the defaults.
@param int[]|false $post_counts Array of post counts, keyed by author ID.
@param array       $parsed_args The arguments passed to wp_list_authors() combined with the defaults.
@return bool Whether or not we have more than one author

Utilisation

// Utilisation de la fonction is_multi_author
$result = is_multi_author();

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

Actualités

Chargement des actualités...