Title: Notifications for Collapsed Admin Menu
Author: Scott Reilly
Published: <strong>26 de Agosto, 2010</strong>
Last modified: 17 de Abril, 2025

---

Buscar plugins

![](https://ps.w.org/notifications-for-collapsed-admin-menu/assets/banner-772x250.
png?rev=825103)

![](https://ps.w.org/notifications-for-collapsed-admin-menu/assets/icon-128x128.
png?rev=1100016)

# Notifications for Collapsed Admin Menu

 Por [Scott Reilly](https://profiles.wordpress.org/coffee2code/)

[Descargar](https://downloads.wordpress.org/plugin/notifications-for-collapsed-admin-menu.1.7.zip)

 * [Detalles](https://gl.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#developers)

 [Soporte](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/)

## Descrición

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 (or, for comments, by hovering on the comments icon),
but you must manually do that to learn of updates.

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). 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 varies depending on the admin color scheme in use by the user.

_NOTE:_ As the plugin’s name suggests, this plugin only takes effect if the admin
sidebar menu is collapsed. Also, the admin user must have JavaScript enabled.

Links: [Plugin Homepage](https://coffee2code.com/wp-plugins/notifications-for-collapsed-admin-menu/)
| [Plugin Directory Page](https://wordpress.org/plugins/notifications-for-collapsed-admin-menu/)
| [GitHub](https://github.com/coffee2code/notifications-for-collapsed-admin-menu/)
| [Author Homepage](https://coffee2code.com)

## Capturas

 * [[
 * A comparison of a collapsed admin sidebar menu for a stock WordPress installation,
   with the plugin activated under WP 2.8+/2.9+, and under WP 3.x+ and WP 4.x+.

## Instalación

 1. Install via the built-in WordPress plugin installer. Or install the plugin code
    inside the plugins directory for your site (typically `/wp-content/plugins/`).
 2. Activate the plugin through the ‘Plugins’ admin menu in WordPress

## Preguntas frecuentes

### Why doesn’t this plugin apply when the admin sidebar menu is expanded?

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.

### Can I change the background color used to highlight the comments/plugins icons?

Yes. 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“#
9932CC” with the color you want):

    ```
    add_filter( 'c2c_collapsed_admin_menu_icon_highlight_color', function( $color ) { return "#9932CC"; } );
    ```

Or, you can make use of my [Add Admin CSS](https://wordpress.org/plugins/add-admin-css/)
plugin to define CSS to override the background color using this snippet of CSS (
once again, replace “#9932CC” with the color you want):

    ```
    /* Override the highlight color used by the plugin Notifications for Collapsed Admin Menu. */
    :root {
      --collapsed-admin-icon-highlight-color: #9932CC;
    }
    .folded #adminmenu li.collapsed-with-pending {
        background-color: var(--collapsed-admin-icon-highlight-color);
        border-left-color: var(--collapsed-admin-icon-highlight-color);
        border-right-color: var(--collapsed-admin-icon-highlight-color);
    }
    ```

### Does this plugin have unit tests?

Yes. The tests are not packaged in the release .zip file or included in plugins.
svn.wordpress.org, but can be found in the [plugin’s GitHub repository](https://github.com/coffee2code/notifications-for-collapsed-admin-menu/).

## Comentarios

Non hai recensións para este plugin.

## Colaboradores e desenvolvedores

“Notifications for Collapsed Admin Menu” é un software de código aberto. As seguintes
persoas colaboraron con este plugin.

Colaboradores

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

[Traduce “Notifications for Collapsed Admin Menu” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/notifications-for-collapsed-admin-menu)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/notifications-for-collapsed-admin-menu/),
bota unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/notifications-for-collapsed-admin-menu/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/notifications-for-collapsed-admin-menu/)
por [RSS](https://plugins.trac.wordpress.org/log/notifications-for-collapsed-admin-menu/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

#### 1.7 (2025-04-17)

 * Hardening: Escape filtered and translated data before output
 * Change: Discontinue unnecessary explicit loading of textdomain
 * Change: Build string via concatenation rather than using HEREDOC syntax
 * Change: Note compatibility through WP 6.8+
 * Change: Note compatibility through PHP 8.3+
 * Change: Update copyright date (2025)
 * Unit tests:
    - Change: Explicitly define return type for overridden method
    - Change: Use `expectException()` instead of `@expectedException` comment (for
      PHPUnit 9 support)

#### 1.6.2 (2024-08-21)

 * Fix: Fix formatting of code in `readme.txt`
 * Change: Note compatibility through WP 6.6+
 * Change: Update copyright date (2024)
 * Change: Reduce number of ‘Tags’ from `readme.txt`
 * Change: Remove development and testing-related files from release packaging
 * Unit tests:
    - Hardening: Prevent direct web access to `bootstrap.php`
    - Change: In bootstrap, store path to plugin directory in a constant

#### 1.6.1 (2023-06-06)

 * Change: Note compatibility through WP 6.3+
 * Change: Update copyright date (2023)
 * New: Add `.gitignore` file
 * Unit tests:
    - Allow tests to run against current versions of WordPress
    - New: Add `composer.json` for PHPUnit Polyfill dependency
    - Change: Prevent PHP warnings due to missing core-related generated files

_Full changelog is available in [CHANGELOG.md](https://github.com/coffee2code/notifications-for-collapsed-admin-menu/blob/master/CHANGELOG.md)._

## Meta

 *  Versión **1.7**
 *  Última actualización **Fai 1 ano**
 *  Instalacións activas **10+**
 *  Versión de WordPress ** 4.6 ou superior **
 *  Probado ata **6.8.5**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/notifications-for-collapsed-admin-menu/)
 * Etiquetas
 * [admin](https://gl.wordpress.org/plugins/tags/admin/)[coffee2code](https://gl.wordpress.org/plugins/tags/coffee2code/)
   [menu](https://gl.wordpress.org/plugins/tags/menu/)[moderation](https://gl.wordpress.org/plugins/tags/moderation/)
   [Notifications](https://gl.wordpress.org/plugins/tags/notifications/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/notifications-for-collapsed-admin-menu/advanced/)

## Valoracións

Aínda non se enviaron valoracións.

[Your review](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/reviews/#new-post)

[Ver todas as valoracións](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/reviews/)

## Colaboradores

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/)

## Doar

Queres apoiar o progreso deste plugin?

 [ Dona a este plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522)