Why does the reply link in comments template scroll to comment position?
Why does the reply link in comments template scroll to comment position?
Why does the reply link in comments template scroll to comment position?
This removes the tag before it displays the comment on the page. I tested it myself. function remove_ugc_from_links($text) { // replace ‘rel=”ugc”‘ with an empty string $new_text = str_replace(‘rel=”ugc”‘, ”, $text); return $new_text; } // Hook our function to the ‘comment_text’ filter add_filter( ‘comment_text’, ‘remove_ugc_from_links’);
The code you’ve provided does remove the website URL field from the comment form. However, bots can still directly POST to the wp-comments-post.php file with a URL included. To prevent this, you can remove the URL from the submitted data before it’s saved to the database. You can achieve this using the preprocess_comment filter. Add … Read more
Show/Hide comments
Add pending for reply comment in console WordPress
WordPress Editor widgets “comments” and “post comments form” getting disappeared with elementor [closed]
Show success message on comment submit when email and name is not required field
How can I add a check and not send an auto-reply to certain comments if the user fills in a custom field?
Get approved comments or comments that the author is me
Initially it seemed like a good idea to add comment_notification_text inside the pre_comment_on_post hook, but it didn’t go well. So I removed the pre_comment_on_post and just added to comment_notification_text a comment type check, which is related to the CPT for which the comments are. Now my code works fine for both comment categories (moderated and … Read more