the_tags

FUNCTION wp-includes\category-template.php (ligne 1208) github
Filters the tags list for a given post.

Paramètres

Entrée :
$before = null, $sep = ', ', $after = ''
Sortie :
@param string $tag_list List of tags.
@param string $before   String to use before the tags.
@param string $sep      String to use between the tags.
@param string $after    String to use after the tags.
@param int    $post_id  Post ID.
@param string $before Optional. String to use before the tags. Defaults to 'Tags:'.
@param string $sep    Optional. String to use between the tags. Default ', '.
@param string $after  Optional. String to use after the tags. Default empty.

Utilisation

// Utilisation de la fonction the_tags
$result = the_tags($before = null, $sep = ', ', $after = '');

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

Actualités

Chargement des actualités...