Insert image in comment reply
What you’re looking for could be a wp_editor() in comment form : wp_editor( $comment->comment_content, ‘content’, array( ‘media_buttons’ => true, ‘tinymce’ => false, ‘quicktags’ => $quicktags_settings ) );
What you’re looking for could be a wp_editor() in comment form : wp_editor( $comment->comment_content, ‘content’, array( ‘media_buttons’ => true, ‘tinymce’ => false, ‘quicktags’ => $quicktags_settings ) );
Those characters you quoted here are Han (used by Chinese language), as they matched by the unicode character property \p{Han}. You can perform a regular expression search in a plugin like so: <?php /** * Plugin Name: Drop comments by chars * Description: Delete comments which includes unicode characters of Han, Hangul and Cyrillic. * … Read more
I realized that comment-reply.js is not loaded and it fixed the issue. Could someone explain? I have no idea what happened. So the fix was adding wp_enqueue_script( ‘comment-reply’ ); to my plugin code.
wp_update_comment triggers the edit_comment action (source), you’re creating an infinite loop.
Comment count wrong with orphaned comments
Put below code into your current theme’s comments.php file: <div class=”navigation”> <?php paginate_comments_links(); ?> </div> <ol class=”commentlist”> <?php wp_list_comments(); ?> </ol> <div class=”navigation”> <?php paginate_comments_links(); ?> </div> This code will display pagination as you expect. Don’t forgot to check the break comment to part with number of settings from Admin > Settings > Discussion Settings. … Read more
WP_Query does not currently support querying by the comment_count field, but there is a proposed patch for this functionality. See Trac ticket #28399. Update: #28399 has been fixed and should land in version 4.9 In the meantime, here is a workaround based on information from this post which will alter the where clause of a … Read more
The ‘consent’ checkbox is already part of WP Core. See Settings, Discussion, for the “Show comments cookies opt-in checkbox”. Enable that, and your comments area will have a GDPR-type checkbox there. There are also other Privacy/GDPR related options in the latest WP. Look under Settings, Privacy. Also look under the Tools menu for the Export/Erase … Read more
first thing I would do is to deactivate the Cache and see if that makes a difference. If disabling solves the problem, reset the cache for the comments of the particular post. Probably something went wrong for the caching strategy and it ended up in some useless state.
Role Approved Comment plugin http://wordpress.org/extend/plugins/role-approved-comment/ This plugin will allow any specified role to have their comments automatically approved.