Filtering Comment Reply Links (comment_reply_link_args) for “infinite replies” in nested comments

Here’s my solution. It relies on removing the original comment link and recreating it by appending it to the comment itself: https://www.webhostinghero.com/adding-infinite-replies-in-wordpress/ The only caveat is to make sure that wp_list_comments has been called with the default style argument. If it’s not, then that element needs to be changed as explained in my article. Most … Read more

Query posts by last comments

i thinks this help to you $args = array ( ‘status’ => ‘approve’, ‘number’ => ‘5’ ); $comments = get_comments( $args ); if ( !empty( $comments ) ) : echo ‘<ul>’; foreach( $comments as $comment ) : echo ‘<li><a href=”‘ . get_permalink( $comment->comment_post_ID ) . ‘#comment-‘ . $comment->comment_ID . ‘”>’ . $comment->comment_author . ‘ on … Read more

Spammers attacking my WordPress Site – Removing URL field from core? [closed]

The decision about comment status upon posting is made by wp_allow_comment() function. There is a filter in it that can be used to change it accordingly. Basic form would look something like this (not tested): add_filter( ‘pre_comment_approved’, function( $approved, $commentdata ) { if ( ! empty( $commentdata[‘comment_author_url’] ) ) { return ‘spam’; } return $approved; … Read more