admin-notice-remover
Admin Notice Remover allows you to permanently remove specific admin notices that you don't want to see in your WordPress dashboard.
README
Admin Notice Remover
Description
Admin Notice Remover allows you to permanently remove specific admin notices that you don't want to see in your WordPress dashboard. Instead of just hiding them with CSS, this plugin completely removes the notices from the DOM, ensuring they don't take up any space or resources.
Features
- Complete removal of specified notices (not just hiding them)
- Performance optimized with built-in caching
- Easy configuration through a separate config file
- Matches notices by both CSS class and content
- Works with all types of WordPress admin notices
- Minimal performance impact
Installation
- Download the plugin files
- Create a directory called
admin-notice-removerin your/wp-content/plugins/directory - Upload the following files to the directory:
admin-notice-remover.phpnotices-config.phpREADME.md(optional)
- Activate the plugin through the 'Plugins' menu in WordPress
Example Configuration
return array(
array(
'class' => 'themeisle-sale',
'content_partial' => 'Themeisle Black Friday Sale'
),
array(
'class' => 'update-nag',
'content_partial' => 'Please update now'
)
);
How It Works
- The plugin loads the notice configuration from
notices-config.php - Configurations are cached for optimal performance
- When the admin panel loads, the plugin intercepts the output
- Specified notices are completely removed from the page
- The cache is automatically refreshed every hour
Requirements
- WordPress 4.7 or higher
- PHP 7.0 or higher
Frequently Asked Questions
How do I add new notices to remove?
Edit the notices-config.php file and add new entries following the existing format.
Does this affect frontend performance?
No, the plugin only runs in the WordPress admin panel.
Troubleshooting
If a notice isn't being removed:
- Check the notice's HTML class in your browser's inspector
- Verify the class name in
notices-config.php - Try adding some unique text from the notice as a
content_partial - Clear the cache by deactivating and reactivating the plugin
Contributing
Feel free to submit issues and enhancement requests on our repository.
License
This project is licensed under the GPL v2 or later.
Details
- Last updated
- April 29, 2025
- License
- Apache-2.0
- Language
- PHP
- Stars
- 0
- Forks
- 0
Download
Download ZIPSponsor us
Our software is free forever. Sponsorships help us maintain 30+ plugins and build new tools for the WordPress ecosystem.
Contact us about sponsoringCommunity
Write for us
Got a WordPress story, tutorial, or opinion? We welcome guest posts from the community.
Pitch a guest post