Filters the returned comment count for a post.
$zero = false, $one = false, $more = false, $post = 0
Sortie :
@param string|int $comments_number A string representing the number of comments a post has, otherwise 0. @param int $post_id Post ID. @param string|false $zero Optional. Text for no comments. Default false. @param string|false $one Optional. Text for one comment. Default false. @param string|false $more Optional. Text for more than one comment. Default false. @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is the global `$post`.
// Utilisation de la fonction comments_number
$result = comments_number($zero = false, $one = false, $more = false, $post = 0);
if ($result) {
// Votre logique ici
}
Chargement des actualités...