Title: Notifications for Collapsed Admin Menu
Author: Scott Reilly
Published: <strong>26.08.2010</strong>
Last modified: 17.04.2025

---

Поиск плагинов

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

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

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

# Notifications for Collapsed Admin Menu

 Автор: [Scott Reilly](https://profiles.wordpress.org/coffee2code/)

[Скачать](https://downloads.wordpress.org/plugin/notifications-for-collapsed-admin-menu.1.7.zip)

 * [Детали](https://ru.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/notifications-for-collapsed-admin-menu/#developers)

 [Поддержка](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/)

## Описание

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)

## Скриншоты

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

## Установка

 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

## Часто задаваемые вопросы

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

## Отзывы

Нет отзывов об этом плагине.

## Участники и разработчики

«Notifications for Collapsed Admin Menu» — проект с открытым исходным кодом. В развитие
плагина внесли свой вклад следующие участники:

Участники

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

[Перевести «Notifications for Collapsed Admin Menu» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/notifications-for-collapsed-admin-menu)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/notifications-for-collapsed-admin-menu/),
проверьте [SVN репозиторий](https://plugins.svn.wordpress.org/notifications-for-collapsed-admin-menu/),
или подпишитесь на [журнал разработки](https://plugins.trac.wordpress.org/log/notifications-for-collapsed-admin-menu/)
по [RSS](https://plugins.trac.wordpress.org/log/notifications-for-collapsed-admin-menu/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

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

## Мета

 *  Версия **1.7**
 *  Обновление: **2 года назад**
 *  Активных установок: **10+**
 *  Версия WordPress ** 4.6 или выше **
 *  Совместим вплоть до: **6.8.11**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/notifications-for-collapsed-admin-menu/)
 * Метки:
 * [admin](https://ru.wordpress.org/plugins/tags/admin/)[coffee2code](https://ru.wordpress.org/plugins/tags/coffee2code/)
   [menu](https://ru.wordpress.org/plugins/tags/menu/)[moderation](https://ru.wordpress.org/plugins/tags/moderation/)
   [Notifications](https://ru.wordpress.org/plugins/tags/notifications/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/notifications-for-collapsed-admin-menu/advanced/)

## Оценки

Пока что нет ни одного отзыва.

[Ваш отзыв](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/reviews/)

## Участники

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

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/notifications-for-collapsed-admin-menu/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522)