=== The Viking Auto Dismiss ===
Contributors: thevikingwebdesign
Tags: admin, notices, dismiss, cleanup, productivity
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.1.2
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically dismisses annoying admin notices while keeping important WordPress updates and security warnings visible.

== Description ==

**Stop wasting time clicking away spam admin notices!**

The Viking Auto Dismiss is a smart WordPress plugin that automatically dismisses annoying admin notices, so you can focus on what really matters - running your business.

= What It Does =

This plugin intelligently identifies and automatically dismisses spam-like admin notices including:

* ✓ Review and rating requests
* ✓ "Please rate us" messages
* ✓ Promotional offers and discount codes
* ✓ "Upgrade to Pro" advertisements
* ✓ Plugin recommendations
* ✓ Newsletter signup prompts
* ✓ Marketing notifications

= What It Keeps =

The plugin is smart enough to preserve all important notifications:

* ✓ WordPress core updates
* ✓ Security warnings
* ✓ Error messages
* ✓ Plugin and theme updates
* ✓ Critical system notifications
* ✓ Database issues
* ✓ PHP compatibility warnings

= Key Features =

* **Intelligent Detection** - Uses pattern matching to identify spam vs. important notices
* **Set and Forget** - Works automatically once enabled
* **Safe** - Never dismisses critical security or update notifications
* **Lightweight** - Minimal performance impact
* **Easy Toggle** - Simple on/off switch in settings
* **No Configuration Needed** - Works out of the box
* **Translation Ready** - Fully internationalized

= Perfect For =

* Busy entrepreneurs who value their time
* Agencies managing multiple client sites
* Developers who are tired of spam notices
* Anyone who wants a cleaner WordPress admin

= Privacy =

This plugin does not collect, store, or transmit any user data. It works entirely locally in your WordPress installation.

= Related Plugins =

Check out [TidyBot](https://wordpress.org/plugins/tidybot/) for comprehensive WordPress cleanup - removes unused plugins, themes, and database entries to keep your site lean and fast.

= About The Developer =

Developed by [The Viking Webdesign](https://thevikingwebdesign.com/) - We build WordPress solutions for entrepreneurs who want to focus on their business, not on annoying admin notices.

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin panel
2. Go to Plugins > Add New
3. Search for "The Viking Auto Dismiss"
4. Click "Install Now" and then "Activate"

= Manual Installation =

1. Download the plugin ZIP file
2. Log in to your WordPress admin panel
3. Go to Plugins > Add New > Upload Plugin
4. Choose the ZIP file and click "Install Now"
5. Activate the plugin

= After Installation =

The plugin works automatically once activated. To adjust settings:

1. Go to Settings > Auto Dismiss
2. Toggle the "Enable Auto Dismiss" checkbox
3. Click "Save Settings"

That's it! The plugin will now automatically dismiss spam notices.

== Frequently Asked Questions ==

= Will this dismiss important update notifications? =

No! The plugin is designed to only dismiss marketing and promotional notices. All WordPress core updates, security warnings, error messages, and plugin/theme updates remain visible.

= Can I temporarily disable the auto-dismiss feature? =

Yes! Simply go to Settings > Auto Dismiss and uncheck the "Enable Auto Dismiss" option. You can re-enable it anytime.

= Does this plugin affect website performance? =

No. The plugin is extremely lightweight and only loads a small JavaScript file in the WordPress admin area. It has no impact on your website's frontend performance.

= Will this work with all plugins? =

The plugin works with the vast majority of WordPress plugins that use standard WordPress admin notice APIs. In rare cases where a plugin uses non-standard notices, they may not be automatically dismissed.

= Does this plugin collect any data? =

No. This plugin does not collect, store, or transmit any data. It works entirely within your WordPress installation.

= What if I want to see all notices temporarily? =

Simply disable the plugin from Settings > Auto Dismiss, or deactivate it temporarily from the Plugins page.

= Can I customize which notices are dismissed? =

The current version automatically identifies and dismisses spam notices based on intelligent pattern matching. Future versions may include more customization options based on user feedback.

= Is this plugin compatible with multisite? =

Yes, the plugin works on both single WordPress installations and multisite networks.

= How do I report a bug or suggest a feature? =

Please use the WordPress.org support forum for this plugin, or contact us through [our website](https://thevikingwebdesign.com/).

== Screenshots ==

1. Clean WordPress admin - no more spam notices
2. Simple settings page with on/off toggle
3. Before: Cluttered admin with multiple spam notices
4. After: Clean admin with only important notices

== Changelog ==

= 1.1.1 =
* Fixed white page issues on dashboard (index.php) and plugins.php pages
* Added TGM Plugin Activation notice detection and automatic dismissal
* Improved stability by excluding sensitive admin pages from auto-dismiss processing
* Enhanced error handling and null checks to prevent JavaScript errors
* Better detection of plugin-specific notices even when they have update-nag class

= 1.1.0 =
* Fixed critical issue where plugin list table action links (Activate/Deactivate) were being removed
* Added comprehensive protection for plugin list table elements on plugins.php page
* Improved notice detection to only process actual admin notices, not UI elements
* Enhanced exclusion filters for WordPress admin interface elements
* Added Photo Gallery / 10Web and Soledad Theme notice support

= 1.0.9 =
* Added Photo Gallery / 10Web notice detection and dismissal
* Fixed "Maybe later" button in review popup - popup now closes correctly
* Improved dismiss link handling for Photo Gallery notices

= 1.0.8 =
* Fixed issue where Really Simple Security "Negeren" links caused page navigation to white page
* Improved handling of dismiss links - notices are now removed directly instead of clicking navigation links
* Better detection and handling of links vs buttons for dismiss actions

= 1.0.7 =
* Added automatic background registration check (once per 24 hours and on admin activity)
* Enhanced detection for Really Simple Security notices with "Negeren" link
* Enhanced detection for Elementor notices with .e-notice__dismiss buttons
* Added detection for 30+ popular WordPress plugins (Yoast, WooCommerce, Jetpack, etc.)
* Improved link click handling for dismiss links (not just buttons)
* Better handling of notices with different structures and languages

= 1.0.6 =
* Added 24-hour dismissal counter in admin bar and settings page
* Added direct dismiss approach for all notice-dismiss buttons (most aggressive method)
* Enhanced detection for Astra theme "Getting Started" banner
* Enhanced detection for SureForms analytics optin notice
* Enhanced detection for WordPress welcome notices
* Added multi-language dismiss button detection (English and Dutch)
* Added automatic dismissal of success messages after 10 seconds delay
* Improved notice container detection (walks up DOM tree)
* Added multiple click attempts with delays for better reliability
* Added force removal fallback if dismiss button doesn't work
* Enhanced debug logging for troubleshooting
* More aggressive notice detection and dismissal
* Better handling of notices with different language variants
* Improved dismiss button finding (by class, by text, by screen-reader-text)
* Better notice container detection when structure varies
* Fixed issue where notices weren't being dismissed on some pages
* Fixed issue with notices that have different language screen-reader-text
* Fixed issue with notices that don't have standard .notice class structure

= 1.0.5 =
* Added automatic site registration for tracking (free plugin)
* Added own admin menu item (moved from Settings submenu)
* Added Viking Core integration for registration and webhook events
* Added heartbeat system for active installation tracking
* Enhanced review pattern detection (tester, test review, etc.)
* Improved code quality (Plugin Check compliant)
* Automatic registration for existing users on first menu visit

= 1.0.4 =
* Added plugin-specific detection for WP fail2ban notifications
* Added plugin-specific detection for WP Rocket notifications (including Rocket Insights)
* Enhanced marketing pattern detection for free trial and premium feature promotions
* Added Dutch dismiss button detection (Afsluiten, Negeer deze melding)
* Added specific notice selectors for WP fail2ban and WP Rocket elements
* Added direct plugin identification function for faster detection
* Improved dynamic plugin promotion in settings sidebar (now shows TidyBot or Abandoned Monitor)

= 1.0.3 =
* Added logo support in settings page (header and sidebar)
* Enhanced spam detection with Dutch translations and more patterns
* Added social media prompt detection
* Added feature announcement detection
* Expanded dismiss button selectors for better compatibility
* Added AJAX event listener for dynamically added notices
* Improved notice detection with multiple processing intervals
* Better handling of nested notices

= 1.0.2 =
* Added detection for setup wizard prompts (MonsterInsights, Google Analytics, etc.)
* Added detection for migration/background process notices
* Added detection for theme plugin requirement notices
* Enhanced pattern matching with Dutch language support
* Improved filtering of non-critical configuration prompts

= 1.0.1 =
* Enhanced spam detection patterns
* Added detection for "How do you like..." style review requests
* Added auto-dismiss for success notification spam (cache cleared, optimization complete, etc.)
* Improved pattern matching for promotional content

= 1.0.0 =
* Initial release
* Automatic detection and dismissal of spam admin notices
* Intelligent pattern matching to preserve important notifications
* Simple enable/disable toggle
* Lightweight and performant
* Translation ready
* WordPress 6.7 compatible

== Upgrade Notice ==

= 1.1.1 =
Stability update: Fixed white page issues on dashboard and plugins.php. Added TGM Plugin Activation notice support. Improved error handling.

= 1.1.0 =
Critical fix: Plugin list table action links are now protected. The plugin will no longer remove Activate/Deactivate buttons on the plugins page.

= 1.0.9 =
Added Photo Gallery notice support and fixed review popup close button. Better handling of dismiss links.

= 1.0.8 =
Fixed Really Simple Security notice dismissal - no more white pages when dismissing notices.

= 1.0.7 =
Enhanced detection for 30+ popular plugins, automatic background registration, improved link handling. Better dismissal of Really Simple Security and Elementor notices.

= 1.0.6 =
Major update! 24-hour dismissal counter, enhanced detection for Astra/SureForms/Elementor notices, more aggressive dismissal. Success messages auto-dismiss after 10 seconds. Improved reliability.

= 1.0.5 =
Now includes automatic site registration for tracking. Plugin Check compliant with improved code quality. Own admin menu for better visibility.

= 1.0.4 =
Now automatically dismisses WP fail2ban and WP Rocket promotional notifications! Enhanced detection for free trial offers and premium feature promotions.

= 1.0.2 =
Now dismisses setup wizards, migration notices, and theme plugin requirements. Includes Dutch language support!

= 1.0.1 =
Enhanced spam detection! Now catches "How do you like..." messages and auto-dismisses success notification spam.

= 1.0.0 =
Initial release of The Viking Auto Dismiss. Install to automatically dismiss annoying admin notices!

== Additional Info ==

= Support =

For support questions, please use the [WordPress.org support forum](https://wordpress.org/support/plugin/the-viking-auto-dismiss/).

= Contribute =

We welcome contributions and feedback! Visit our website at [thevikingwebdesign.com](https://thevikingwebdesign.com/) to get in touch.

= Other Plugins =

Check out our other WordPress solutions:
* [TidyBot](https://wordpress.org/plugins/tidybot/) - Comprehensive WordPress cleanup tool
* [The Viking Abandoned Monitor](https://wordpress.org/plugins/the-viking-abandoned-monitor/) - Identify potentially abandoned or outdated plugins