Don’t do the check on activation?
Seriously, the best way I can think of is not to check for this on activation, but only in the normal plugin load process. And instead of throwing a warning (I assume you mean a PHP E_WARNING), perhaps putting an admin error box up would make more sense.
Related Posts:
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- How To Activate Plugins via Code?
- Activate a plugin through PHPMyAdmin or FTP?
- How to check if a theme is active?
- wp_mail and BCC headers
- Automatically install wordpress plugin at theme activation
- Show a confirm message before plug-in activation
- Function to activate WordPress theme inside a plugin
- Claim Listing functionality – how to send email to users when their claim has been approved or denied
- Activate Plugin which is in subfolder?
- An old plugin self-made stoped sending mail
- explanation for activate_plugin function in wordpress core
- Remote plugin activation hook
- wp_mail() is not working in localhost
- Force plugin to fail activation
- WordPress register_activation_hook table creation not working
- Multisite: Activate plugin for subsites only?
- The plugin generated x characters of unexpected output, $wpdb not defined
- Send emails with wp_mail() using SMTP configured in plugin
- Correct way to use register_activation_hook
- wp_mail() is not working on server
- Cannot run the code after I activate the plugin
- wp_mail attachment not working
- wordpress in nginx docker container connected to php:8-fpm container and mariadb container isn’t creating any tables on plugin activation
- Unable to activate wordpress importer after installing it
- How to include plugin without activation?
- Auto add content such as pages upon plugin activation?
- Detect when any plugin is activated or deactivated
- How to automate wordpress plugin activate and deactivate by php logic?
- Why wp_mail() function isn’t sending any emails and displaying ‘0’ in Chrome ‘Network’ response
- Default Plugin Settings Not Writing to Database
- Plugin won’t activate – cannot declare class (already in use)
- Plugin Deactivate Self on Activation Errors
- How to activate plugins for my WordPress sites from a remote server
- register_activation_hook with include file [closed]
- Prevent a plugin from being automatically activated
- Is any information available in PHP files in WP about plugin activation history?
- Executing my function once on a specific time
- How to send mail to subscribers using wp_mail
- Unable to override pluggable function wp_mail
- Activated plugin is stored as an object, rather than as a path
- Own plugin corrups plugin-activation
- How to check if tables in WordPress still exists after activations
- How to block plugin activations with no known user or coming from unknown IP address range?
- Run plugins only on certain pages
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Force file download on plugin activation
- WordPress user account activation
- Multiple instance of data in plugin custom database table on plugin activation
- Why this function not working for install database on plugin activation
- register_activation_hook in oop approach
- How to create multiple database tables on plugin activation?
- Run function on plugin activation before plugin is loaded
- A question about register_activation hook
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- wp-mail attachment is not sent for no reason?
- register_activation_hook() not working as expected
- Sending HTML email containing custom fields to site users from WordPress
- Sub Plugin deactivation when Parent Plugin deactivate
- Advanced WordPress plugin activation detection
- trigger email when post is published by someone a user follows
- Apparent errer when installing plugin
- Activate a plugin via a SQL query
- wp_mail – using a custom field value
- My plugin does not install correctly if a previous version is still installed
- Is there existing plugins to “Click-to-Launch” embedded Flash / SWF content?
- Activation flow of a plugin in a multisite environment
- How to properly use wp_mail() in my own plugin?
- How can I send the mail once?
- How to run flush_rewrite_rules on activation after i register my custom post type using WordPress Boilerplate Plugin
- How to check for already existing plugin versions on activation? and prevent errors
- how to enable/activate a plugin per Cpanel
- wp_mail function not working in WordPress Plugin Boilerplate
- My WordPress activation hook isn’t working
- Generate and send ICS file through WordPress
- Cannot modify header information – headers already sent during plugin activation
- Error Copying Directory On Plugin Activation
- WordPress hook source
- API calls on plugin activation or init?
- plugins_loaded action is not working properly
- Different plugins activated online and offline
- Problems with installing and deleting plugins
- Plugin De/Activation Not Firing On MultiSite install
- Custom Table doesn’t create on plugin activation
- Activate plugins by a theme’s functions.php?
- Is it possible to send user new password after they clicking on forgot password in word press
- why i cannot see some plugins while they are enabled on network admin page?
- Install theme as part of a plugin
- Automatically install bundled plugins during theme activation?
- How to notify wordpress instalation about my plugin update?
- Is it possible not to load theme on a specific page in wordpress?
- How to change shortcode’s default theme?
- Integer in Array returns null
- Plugin onclick button activate other plugin
- composer not working on my plugin when i upload it to my website
- wc_get_template new template does not showing up
- How to select a paragraph other than the 1st to be the post’s excerpt?
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- Send email to multiple addresses on Contact Form 7, but exclude personal details on all but one
- How can I support plugins in a custom theme?