post_comments_link

FILTER wp-includes\comment-template.php (ligne 1964) github
Filters the formatted post comments link HTML.

Paramètres

Entrée :
$post_reply_link, $post
Sortie :
@param string      $post_reply_link The HTML-formatted post comments link.
@param int|WP_Post $post            The post ID or WP_Post object.

Utilisation

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

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

Actualités

Chargement des actualités...