get_comment_link

FUNCTION wp-includes\comment-template.php (ligne 753) github
Retrieves the link to a given comment.

Paramètres

Entrée :
$comment = null, $args = array(
Sortie :
@param WP_Comment|int|null $comment Optional. Comment to retrieve. Default current comment.
@param array               $args {
@return string The permalink to the given comment.

Utilisation

// Utilisation de la fonction get_comment_link
$result = get_comment_link($comment = null, $args = array();

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

Actualités

Chargement des actualités...