WordPress Editor widgets “comments” and “post comments form” getting disappeared with elementor [closed]
WordPress Editor widgets “comments” and “post comments form” getting disappeared with elementor [closed]
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?
A brief introduction and what does wp.apiRequest() return wp.apiRequest() is one of the three JavaScript API written by WordPress (the other two JavaScript APIs are the Backbone JavaScript Client and wp.apiFetch()), which we can use to communicate with the WordPress REST API, and as for wp.apiRequest(), it uses jQuery.ajax() which returns a jqXHR object that … Read more
Get approved comments or comments that the author is me
Permissions error when I use my plugin to delete comments in the front-end
function preprocess_mycomment($commentdata) { $existing_comments = get_comments( array(‘post_id’ => 31691) ); // I run the code for one specific page only foreach ($existing_comments as $comment) { $previous_comments = $comment->comment_author_email; // email address send by the current poster if ( $previous_comments == $commentdata[‘comment_author_email’] ) { // comparing the current email address with the previous ones in database. … Read more
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
Restrict users to see only own comments and the post author’s replies
Add functionality to block comment authors in the Comment edit pag