Skip to content

Tidy Notifications

Ben Gillbanks edited this page Jun 12, 2021 · 1 revision

WordPress has a real problem with Notification spam. There's a working group who plan to fix this but progress has been slow and they seem to have stalled. This is my attempt to address the issue in the simplest way possible.

The code uses JavaScript to slurp up the notifications and stick them in a sidebar that is hidden by default.

If there are no notifications then the sidebar, and related button are hidden. If there are notifications then a notification button will appear in the admin bar.

Limitations

This plugin is very static and not very intelligent. This is by design. I wanted to make the simplest thing possible to fix the problem.

The numer of notifications in the admin bar will not update until the page is reloaded.

Missed notifications

The plugin tries to grab all notifications but since standards are not always followed it may miss some. If this happens please open a new issue and let me know what the plugin is, and what classes are used on the notification. I will then be able to add an exception for that plugin.