How to output a permanently delete comment link?
After briefly testing, the code snippet from OP seems to work: printf( ‘<a href=”https://wordpress.stackexchange.com/questions/269898/%s”>%s</a>’, wp_nonce_url( admin_url( “comment.php?c=$comment_id&action=deletecomment” ), ‘delete-comment_’ . $comment_id ), esc_html__( ‘Delete comment’, ‘text-domain’ ) ); But it looks like we have to make sure that the author is only deleting comments on hir own post, otherwise it will look for the edit_others_posts … Read more