- Author:Scott Reilly
- First released:2010-08-26
- Last update:2015-02-26
- Compatibility:WP 2.8 – 4.1.6
- Download:[ zip ]
Highlights the comments and plugins icons in the collapsed admin sidebar menu when notifications are pending.
In the WordPress admin, when the left sidebar menu is expanded WordPress presents you with a highlighted number within the menu itself indicating the number of pending comments (i.e. comments in moderation) and a separate number for the number of plugins with updates.
However, if you collapse the sidebar menu, then there are no visual indications that either types of updates are available. You can view the count of updated plugins by hovering on the plugins icon, but you must manually do that to learn of updates. No such hovering count exists for the comments icon, so the only ways to find out about pending comments are to visit the dashboard, visit the comments admin page, or expand the menu
This plugin enhances the sidebar menu to display a visual indication that comments are in moderation and/or there are plugin updates available. It does so by using a different colored background for the icon (see the screenshot). Additionally, if you hover over the comments icon, it will indicate the count of pending comments. (The plugins icon already provides a count of updated plugins when you hover over it.) The visual indication is also updated when AJAX-based requests are made (so doing an in-line approval of the last pending comment will cause the comments icon background color to return to its non-highlighted color).
By default, the plugin utilizes WordPress’s pending/update count background highlight color, which for WP 2.8/2.9 is #e66f00 and for WP 3.0 is #787875.
Find out more at the plugin’s WordPress Plugin Repository page.
Click to see full-size image.
- Download the file notifications-for-collapsed-admin-menu.zip and unzip it into your /wp-content/plugins/ directory (or install via the built-in WordPress plugin installer).
- Activate the plugin through the ‘Plugins’ admin menu in WordPress
Frequently Asked Questions
Q. Why doesn’t this plugin apply when the admin sidebar menu is expanded?
A. There is no need for this plugin to do anything in this situation because WordPress already presents a visible count of pending comments and plugins with updates.
Q. Can I change the background color used to highlight the comments/plugins icons?
A. You can customize the background color used by applying a filter to ‘c2c_collapsed_admin_menu_icon_highlight_color’. For example, in your theme’s functions.php file, you can add this line (but replace “#f5f500″ with the color you want):
add_filter( 'c2c_collapsed_admin_menu_icon_highlight_color', create_function( '', 'return "#f5f500";' ) );
- Reformat plugin header
- Minor code reformatting (spacing, bracing)
- Change documentation links to wp.org to be https
- Minor documentation spacing changes throughout
- Note compatibility through WP 4.1+
- Update copyright date (2015)
- Add plugin icon
- Detect WP 3.8 and determine default background colors based on the chosen admin color theme
- Minor code tweaks (spacing)
- Note compatibility through WP 3.8+
- Update copyright date (2014)
- Change donate link
- Update banner image to reflect WP 3.8 admin refresh
- Update screenshot to reflect WP 3.8 admin refresh
- Add check to prevent execution of code if file is directly accessed
- Note compatibility through WP 3.5+
- Update copyright date (2013)
- Move screenshot into repo’s assets directory
- Re-license as GPLv2 or later (from X11)
- Add ‘License’ and ‘License URI’ header tags to readme.txt and plugin file
- Remove ending PHP close tag
- Update screenshot for WP 3.4
- Minor readme.txt changes
- Note compatibility through WP 3.4+
- Hook ‘admin_enqueue_scripts’ action instead of ‘admin_head’ to output CSS
- Add version() to return plugin version
- Note compatibility through WP 3.3+
- Add link to plugin directory page to readme.txt
- Update copyright date (2012)
- Add admin color scheme-specific color defaults
- Improve CSS by making selector more specific in order to eliminate !important clauses
- Detect changed id/class selectors in jQuery and use WP 3.2 appropriate ids/classes
- Explicitly enqueue jQuery
- Note compatibility through WP 3.2+
- Minor documentation reformatting in readme.txt
- Fix plugin homepage and author links in description in readme.txt
- Fix bug with incorrect pending comment count when comment menu has submenu item(s)
- Explicitly declare all class function public static
- Note compatibility through WP 3.1+
- Update copyright date (2011)
- Initial release
Copyright & DisclaimerCopyright © 2010-2015 by Scott Reilly (aka coffee2code)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Discussion / Support
Have any questions, comments, or suggestions? Please provide them via the plugin’s WordPress.org support forum. I’ll do my best to reply in a timely fashion and help as best I can.
Unfortunately, I cannot provide guaranteed support, nor do I provide support via any other means.
Was this plugin useful useful to you? Consider giving it a rating. If you’re inclined to give it a poor rating, please first post to the support forum to give me a chance to address or explain the situation.