Last Updated: 20th Sep 2017
WPTavern: New Dobby Plugin Captures and Hides Unwanted WordPress Admin Notices
With the right combination of plugins and events, the WordPress admin area can quickly become a confusing mess of notices. WordPressâ€™ notification system is often abused and overused by plugin authors who want to inject upsells and announcements into the admin. These can stack up like a pile of junk mail vying for usersâ€™ attention when they are trying to manage their sites. Ultimately, notice overload decreases usersâ€™ enjoyment of the software and may contribute to making it a chore to log into WordPress.
The new Dobby plugin from Thorsten Frommen attempts to solve this problem by capturing and hiding unwanted admin notices. Frommen, a WordPress engineer at Inpsyde, was inspired to create the plugin after he saw a recent tweet from Torsten Landsiedel showing â€śEveryday life in the WordPress dashboard.â€ť
Alltag im WordPress Dashboard. pic.twitter.com/lofO7544uL
â€” Torsten Landsiedel (@zodiac1978) July 16, 2017
Dobby rolls up WordPress admin notices and keeps them hidden behind a â€śRevealâ€ť button that toggles a color-coded list of notices into view. It captures all the notices that are printed via the admin notice hooks, such as
all_admin_notices. Dobby will post an admin notice if any notices have been captured.
Frommen said the target audience for his plugin is â€śall the people sick and tired of too many admin notifications, which are oftentimes of no real value at all.â€ť Dobby has a filter available for users to define what â€śtoo manyâ€ť means for themselves. The pluginâ€™s GitHub repository has examples of how to use the Dobby filter threshold, which lets users customize the minimum number of admin notices required to trigger Dobby to start hiding them.
â€śIt certainly is possible that people may miss (critical) messages with Dobby being active,â€ť Frommen said. â€śHowever, Dobby is smart enough to style his admin notice according to the most critical one captured. This means that Dobbyâ€™s notice will have error styling if there was an error notice captured. If the most critical one was a warning, thatâ€™s what Dobbyâ€™s notice will be as well. Otherwise, itâ€™s an info notice.â€ť
Within the first 10 minutes of requesting translations after announcing that Dobby was on WordPress.org, Frommen received German and Dutch translations for the plugin. The plugin UI has only two strings, which makes it a simple, 5-minute translation job.
Frommen is considering adding a filter for people to define what kind of notices they would like Dobby to capture. He welcomes suggestions, contributions on GitHub, and more translations from the WordPress community.