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.
- 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
- 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
return array(
array(
'class' => 'themeisle-sale',
'content_partial' => 'Themeisle Black Friday Sale'
),
array(
'class' => 'update-nag',
'content_partial' => 'Please update now'
)
);- 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
- WordPress 4.7 or higher
- PHP 7.0 or higher
Edit the notices-config.php file and add new entries following the existing format.
No, the plugin only runs in the WordPress admin panel.
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
Feel free to submit issues and enhancement requests on our repository.
This project is licensed under the GPL v2 or later.