Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter BlaenkDenum

    (@blaenkdenum)

    I got it, just took the code from wp-admin/edit-comments.php:

    <?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
    $url = clean_url(wp_nonce_url( "/wp-admin/comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ));
    echo "<a href='$url' class='delete:the-comment-list:comment-$comment->comment_ID delete'>" . __('Delete') . "</a> ";
    } ?>

    Thank you, for literally being the only person alive to not only post a problem, but bother coming back with a solution. 🙂

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Delete Comment Link’ is closed to new replies.