post_comments_feed_link

FUNCTION wp-includes\link-template.php (ligne 813) github
Filters the post comments feed permalink.

Paramètres

Entrée :
$link_text = '', $post_id = 0, $feed = ''
Sortie :
@param string $url Post comments feed permalink.
@param string $link_text Optional. Descriptive link text. Default 'Comments Feed'.
@param int    $post_id   Optional. Post ID. Default is the ID of the global `$post`.
@param string $feed      Optional. Feed type. Possible values include 'rss2', 'atom'.

Utilisation

// Utilisation de la fonction post_comments_feed_link
$result = post_comments_feed_link($link_text = '', $post_id = 0, $feed = '');

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

Actualités

Chargement des actualités...