Get the number of comments awaiting moderation
You need wp_count_comments(). $comments_count = wp_count_comments(); $comments_count->moderated; // (int) comments in moderation
You need wp_count_comments(). $comments_count = wp_count_comments(); $comments_count->moderated; // (int) comments in moderation
Check in your theme’s comments.php for the wp_list_comments() function. In the Twenty Eleven theme, for example, uses a custom callback function which is in the functions.php file and outputs the template for comments. Within this comments template, you can then use wp_get_comment_status() and only display a comment if it was approved. Example from the Codex: … Read more
Use the Edit Flow plugin to allow authors to leave meta comments only visible in the backend or however you choose to display them on the frontend.
Per default wp_list_comments() calls the class Walker_Comment. Its method start_el() calls edit_comment_link() and here we find a filter for your question: It is called ‘edit_comment_link’ and it passes two variables, the link text and the comment ID, which we can use. The URLs to mark a comment as spam or to delete it are: wp-admin/comment.php?c=1&action=cdc&dt=spam … Read more
You could hook into ‘pre_comment_approved’ and change its return value. Sample code, not tested: add_filter( ‘pre_comment_approved’, ‘wpse47172_approve_logged_in_users’ ); function wpse47172_approve_logged_in_users( $approved ) { return is_user_logged_in() ? 1 : $approved; }
I can’t offer an explanation as to why this is happening, but I can give you a quick fix to silence it. The function responsible is wp_notify_moderator, which is a pluggable function. You can copy the contents of the function into your own plugin and modify it to return true in the case of a … Read more
I have used the plugin Comment Notifier. http://wordpress.org/extend/plugins/comments-notifier/ And it works adequately.
The comment_max_links_url filter We can count the number of internal links in the comment’s content and subtract that from the total number of links found there ($num_links), with the help of the following filter inside the check_comment() core function: /** * Filters the number of links found in a comment * * @since 3.0.0 * … Read more
I haven’t tried it. but this plugin looks like it satisfies your alternative option http://wordpress.org/extend/plugins/mu-manage-comments-plugin/ Conveniently shows a list of blogs with spam or unmoderated comments so that the Network Administrator can manage the the comments on network blogs. The list shows counts by blog with links to each comment. However. the plugin warns that … Read more
The comment handling is somewhat difficult to follow in code. My educated guess is that you have comment whitelist enabled (Comment author must have previously approved comment), but since pingbacks are not identifiable by author they are treated as requiring moderation.