2

We can submit a comment without text as this function allows the user to submit a comment without any text in the textarea. Now all you need to do is hide the comment textarea with some display:none; css. if ($comment_data['comment_content'] == '%dummy-text%') { $comment_data['comment_content'] = ''; // replace dummy text. } return $...


1

I used this: function wpb_countx() { wp_enqueue_script('jquery'); ?> <script> jQuery(function($) { // configure var comment_input = $( '#commentform textarea' ); var submit_button = $( '#commentform .form-submit' ); var comment_limit_chars = 1400; // stop editing here // display how many characters are ...


1

This doesn't feel very nice since it calls get_comment() and get_userdata(), but I'm not sure there's an obvious better way since the code that calls this doesn't pass in the records we need: function remove_comment_author_link( $return, $author, $comment_ID ) { $comment = get_comment( $comment_ID ); if ( $comment && $comment->user_id ) {...


1

I was able to reset it by editing a row in the wp_options table, option_name = _transient_wc_count_comments In my case, all of the comments were WooCommerce reviews, so your option_name may be different (search the option_value column for your total comment count). Be careful editing serialized data (look it up if it isn't clear!).


Only top voted, non community-wiki answers of a minimum length are eligible