WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Show Pending Comments Count

Display the pending comments count next to the approved comments count in the admin listing of posts.

Filters

The plugin is further customizable via two filters. Typically, these customizations would be put into your active theme's functions.php file, or used by another plugin.

c2c_show_pending_comments_count_column_width

The 'c2c_show_pending_comments_count_column_width' filter allows you to customize the column width used for the comment column when pending comments are also being displayed. The WP default is "4em", which is not sufficient to display a possible 3 digits for approved comments in addition to a possible 2 digits in pending comments. The default defined by the plugin is "5em" which should handle most cases sufficiently. Use the filter if you want to change the width.

Arguments:

  • $comment_column_width (string): The width of the comment column. Default is "5em". Express as a width measurement recognized by CSS.

Example:

<?php add_filter( 'c2c_show_pending_comments_count_column_width', 'my_c2c_show_pending_comments_count_column_width' );
// Make it even wider
function my_c2c_show_pending_comments_count_column_width( $comment_column_width ) {
    return '6em';
} ?>

c2c_show_pending_comments_count_separator

The 'c2c_show_pending_comments_count_separator' filter allows you to specify the character used as the separator between the count of approved comments and the count of pending comments. By default this is ' • ' (a bullet, with space on either side).

Arguments:

  • $separator (string): The character or string to be used as the separator. By default this is ' • ' (note space of either side).
<?php add_filter( 'c2c_show_pending_comments_count_separator', 'my_c2c_show_pending_comments_count_separator' );
// Make it even wider
function my_c2c_show_pending_comments_count_separator( $separator ) {
    return ' | ';
} ?>

Requires: 2.6 or higher
Compatible up to: 3.8.3
Last Updated: 2013-12-19
Downloads: 1,611

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1