Page to view single comment and all replies
Page to view single comment and all replies
Page to view single comment and all replies
The last comments of a post for the author of that post
The closest I could come up with is : function comment_post_check() { if ($_POST[’email’] == ‘[email protected]’) wp_die( __(‘Error: Someone from Somewhere, you are banned’) ); } add_action(‘pre_comment_on_post’, ‘comment_post_check’, 10);
Transfer wordpress comments form on another post [closed]
Well, the AI didn’t do THAT bad of a job. But either you or the AI didn’t deliver code for the functions get_users_who_commented or get_number_of_comments_by_user which are not wordpress functions but have to be coded seperatly. Also, i would change the code a bit to use wordpress-internal functions like the comment query: function my_custom_shortcode( $atts … Read more
Comments not working (error not allowed) on posts with custom post status
You made 2 small errors. First of all: Shortcode-Functions receive a maximum of 2 parameters: $attributes and $content. $attributes is an array of all the attributes within the shortcode, like [shortcode post_id=123] the attribute post_id will end up in the $attributes array as $attributes[‘post_id’]. $content has the content between the opening and the closing shortcode … Read more
It sounds like the TinyMCE editor is not properly initialized when you are replying to a comment. In order to fix this issue, you will need to add some JavaScript code to your WordPress theme that will initialize the TinyMCE editor when the comment reply form is displayed. To do this, you can use the … Read more
As you can see in the list of fields in the documentation, where author_email is listed, some fields are only available in the edit context. You can set the context by adding ?context=edit to your request but this will require the request to be authenticated. This is to ensure that personal data is not publicly … Read more
You can do by adding few lines of code in functions.php or using Disable Comment plugin. But adding few lines of code would be great. Steps: Go to Editor > Open functions.php file. Scroll down to the end of file and add lines of code given below function comments_custom_settings($fields) { unset($fields[‘url’]); unset($fields[’email’]); return $fields; } … Read more