feed_links_extra_show_post_comments_feed

FILTER wp-includes\general-template.php (ligne 3370) github
Filters whether to display the post comments feed link. This filter allows to enable or disable the feed link for a singular post in a way that is independent of {@see 'feed_links_show_comments_feed'} (which controls the global comments feed). The result of that filter is accepted as a parameter.

Paramètres

Entrée :
$show_comments_feed
Sortie :
@param bool $show_comments_feed Whether to display the post comments feed link. Defaults to

Utilisation

// Modifier la valeur avec le filtre 'feed_links_extra_show_post_comments_feed'
add_filter('feed_links_extra_show_post_comments_feed', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($show_comments_feed) {
    // Modifier la valeur
    return $show_comments_feed;
}

Actualités

Chargement des actualités...