comment_url

FILTER wp-includes\comment-template.php (ligne 407) github
Filters the comment author's URL for display.

Paramètres

Entrée :
$comment_author_url, $comment->comment_ID
Sortie :
@param string $comment_author_url The comment author's URL.
@param string $comment_id         The comment ID as a numeric string.

Utilisation

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

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

Actualités

Chargement des actualités...