get_edit_comment_link

FUNCTION wp-includes\link-template.php (ligne 1582) github
Filters the post delete link.

Paramètres

Entrée :
$comment_id = 0, $context = 'display'
Sortie :
@param string $link         The delete link.
@param int    $post_id      Post ID.
@param bool   $force_delete Whether to bypass the Trash and force deletion. Default false.
@param int|WP_Comment $comment_id Optional. Comment ID or WP_Comment object.
@param string         $context    Optional. Context in which the URL should be used. Either 'display',
@return string|void The edit comment link URL for the given comment, or void if the comment id does not exist or

Utilisation

// Utilisation de la fonction get_edit_comment_link
$result = get_edit_comment_link($comment_id = 0, $context = 'display');

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

Actualités

Chargement des actualités...