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

---

Buscar plugins

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

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga asistencia ni lo mantenga nadie, o puede que tenga problemas
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](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://es-ar.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#description)
 * [Valoraciones](https://es-ar.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#reviews)
 *  [Instalación](https://es-ar.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#installation)
 * [Desarrollo](https://es-ar.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#developers)

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

## Descripció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+.⌉⌊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+.⌉[

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/).

## Reseñas

No hay reseñas para este plugin.

## Colaboradores y desarrolladores

“Notifications for Collapsed Admin Menu” es un software de código abierto. Las siguientes
personas han colaborado con este plugin.

Colaboradores

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

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

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/notifications-for-collapsed-admin-menu/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/notifications-for-collapsed-admin-menu/),
o suscríbete al [log de desarrollo](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).

## Registro 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 **hace 2 años**
 *  Instalaciones activas **10+**
 *  Versión de WordPress ** 4.6 o superior **
 *  Testeado hasta **6.8.11**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/notifications-for-collapsed-admin-menu/)
 * Etiquetas:
 * [admin](https://es-ar.wordpress.org/plugins/tags/admin/)[coffee2code](https://es-ar.wordpress.org/plugins/tags/coffee2code/)
   [menu](https://es-ar.wordpress.org/plugins/tags/menu/)[moderation](https://es-ar.wordpress.org/plugins/tags/moderation/)
   [Notifications](https://es-ar.wordpress.org/plugins/tags/notifications/)
 *  [Vista avanzada](https://es-ar.wordpress.org/plugins/notifications-for-collapsed-admin-menu/advanced/)

## Valoraciones

Todavía no se enviaron reseñas.

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

[Ver todas las reseñas](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/reviews/)

## Colaboradores

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

## Soporte

¿Tenés algo que decir? ¿Necesitás ayuda?

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

## Donar

¿Te gustaría apoyar el progreso de este plugin?

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