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

Vanilla Forums as a replacement for WordPress comments?

The downside of using a forum system for comments, is that: the user probably has to register with the site to post a comment the user may not have single sign on ability through Vanilla you won’t be storing your comments in a system that can export them and import them into another commenting engine, … Read more

Using Disqus, how to stop storing comments in wp database?

The disqus plugin synchronizes your WordPress comments with the disqus system — that’s it’s main purpose (own your own comments, etc). You can get around this by ditching the built in WordPress commenting system altogether, modifying your theme templates (probably just comments.php) to use the stand-alone disqus javascript. <script type=”text/javascript”> var disqus_shortname=””; // required: replace … Read more

Allow guests comments on single post

That sounds like a useful feature. To get what you need you have to change three things: Add a checkbox to enable anonymous comments per post. Save the checkbox value together with the post. Filter the checks for the comment registration requirement on the post views to enable the comment form and on the actual … Read more

How to get comments with mixed status using get_comments?

As of the WordPress codex there is no such option. But you could just combine two or more comment arrays using plain PHP: array_merge( get_comments( array( ‘status’ => ‘hold’ ) ), get_comments( array( ‘status’ => ‘trash’ ) ) ); http://codex.wordpress.org/Function_Reference/get_comments http://php.net/array_merge

How to show Disqus comment count number only without text?

Not sure how it’ll behave with Disqus, but try the following filter: add_filter( ‘comments_number’, ‘comments_text_wpse_87886’, 10, 2 ); function comments_text_wpse_87886 ( $output, $number ) { return $number; } The original return is $output, and instead we are returning only the number of comments. That filter happens in the following core function, reproduced here if you … Read more

Custom comment status possible?

Quick answer: no. There is not a built-in function to create a new comment status. The status of a comment (or a post/page/attachment/etc) contains wide-spread implications thoughout your WordPress install, so you couldn’t just add one somewhere quickly. I’m not exactly sure what you’re trying to accomplish by adding this new “status”, but I think … Read more