Filters the post delete link.
$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 de la fonction get_edit_comment_link
$result = get_edit_comment_link($comment_id = 0, $context = 'display');
if ($result) {
// Votre logique ici
}
Chargement des actualités...