Title: Notifications for Collapsed Admin Menu
Author: Scott Reilly
Published: <strong>26. augusta 2010</strong>
Last modified: 17. apríla 2025

---

Vyhľadať plugin

![](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

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

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

 * [Podrobnosti](https://sk.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#description)
 * [Recenzie](https://sk.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#reviews)
 *  [Inštalácia](https://sk.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#installation)
 * [Vývoj](https://sk.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#developers)

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

## Popis

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)

## Obrázky

 * [[
 * 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+.

## Inštalácia

 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

## Časté otázky

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

## Recenzie

Pre tento plugin nie sú žiadne recenzie.

## Prispievatelia a vývojári

“Notifications for Collapsed Admin Menu” je softvér s otvoreným zdrojovým kódom.
Do tohto pluginu prispeli nasledujúci ľudia.

Prispievatelia

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

[Preložiť „Notifications for Collapsed Admin Menu“ do vašho jazyka.](https://translate.wordpress.org/projects/wp-plugins/notifications-for-collapsed-admin-menu)

### Máte záujem o vývoj?

[ Prehľadávajte zdrojový kód](https://plugins.trac.wordpress.org/browser/notifications-for-collapsed-admin-menu/),
preskúmajte [SVN repozitár](https://plugins.svn.wordpress.org/notifications-for-collapsed-admin-menu/),
alebo sa prihláste na odber [vývojárskeho logu](https://plugins.trac.wordpress.org/log/notifications-for-collapsed-admin-menu/)
cez [RSS](https://plugins.trac.wordpress.org/log/notifications-for-collapsed-admin-menu/?limit=100&mode=stop_on_copy&format=rss).

## Zoznam zmien

#### 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

 *  Verzia **1.7**
 *  Posledná aktualizácia **Pred 1 rok**
 *  Aktívne inštalácie **10+**
 *  Verzia WordPress ** 4.6 alebo novšia **
 *  Testované do verzie **6.8.5**
 *  Jazyk
 * [English (US)](https://wordpress.org/plugins/notifications-for-collapsed-admin-menu/)
 * Značky
 * [admin](https://sk.wordpress.org/plugins/tags/admin/)[coffee2code](https://sk.wordpress.org/plugins/tags/coffee2code/)
   [menu](https://sk.wordpress.org/plugins/tags/menu/)[moderation](https://sk.wordpress.org/plugins/tags/moderation/)
   [Notifications](https://sk.wordpress.org/plugins/tags/notifications/)
 *  [Rozšírené zobrazenie](https://sk.wordpress.org/plugins/notifications-for-collapsed-admin-menu/advanced/)

## Hodnotenia

No reviews have been submitted yet.

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

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

## Prispievatelia

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

## Podpora

Máte čo povedať? Potrebujete pomoc?

 [Zobraziť fórum podpory](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/)

## Podporiť

Chceli by ste podporiť pokrok tohto pluginu?

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