on the plugin activation hook, instead of doing everything right there just set a cron job that will do it.
Related Posts:
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Do deactivated plugins slow down a WordPress site?
- How To Activate Plugins via Code?
- Activate a plugin through PHPMyAdmin or FTP?
- How to check if a theme is active?
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- Pluggable function and activation check?
- How can I modify what is being output in wp_head, whether by a theme or WordPress in general?
- How can I reduce the amount of files loaded/included per plugin?
- For performance is it better to build custom functionality into the theme or a plugin
- Multiple plugins vs combined one
- Automatically install wordpress plugin at theme activation
- Show a confirm message before plug-in activation
- WordPress tips for speed and performance [closed]
- Do Plugins effect site loading time?
- Function to activate WordPress theme inside a plugin
- Change page title from plugin
- Activate Plugin which is in subfolder?
- explanation for activate_plugin function in wordpress core
- Remote plugin activation hook
- WordPress shortcodes & performance
- Force plugin to fail activation
- Changing BIGINT to INT
- WordPress register_activation_hook table creation not working
- Prevent CSS/JS loading when plugin is not used
- Multisite: Activate plugin for subsites only?
- How to see list of plugins
- The plugin generated x characters of unexpected output, $wpdb not defined
- Is it ok to call get_option without hooks?
- Correct way to use register_activation_hook
- WordPress Plugin Boilerplate – add_action hook in static “activate” function
- WordPress web page struggling with performance
- How do I know which plugin uses the most resource?
- Cannot run the code after I activate the plugin
- How can I measure the performance of any WordPress Plugin or Theme?
- 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?
- 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]
- prettyPhoto media loading very slowly in Chrome
- How to load plugin after page is loaded – pagespeed issues
- Prevent a plugin from being automatically activated
- Is any information available in PHP files in WP about plugin activation history?
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress performance – W3 Total Cache and memcached/APCu
- Activated plugin is stored as an object, rather than as a path
- how to find and correct plugin query performance issues
- Own plugin corrups plugin-activation
- Correct way to perform non-cacheable DB query
- What’s the best way to implement AJAX in WordPress?
- Does using WP-cron make the site slower for the user?
- 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
- page loading time of a cached page
- Will Gutenberg Have a Negative Impact on Page Speed?
- 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
- Init plugin again after ajax call finish
- Multiple instance of data in plugin custom database table on plugin activation
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Why this function not working for install database on plugin activation
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- add_action in a custom plugin
- Plugin init hook fires repeatedly
- register_activation_hook in oop approach
- How to create multiple database tables on plugin activation?
- Improving the perfomance of a plugin action
- Namespaced shortcode?
- Run function on plugin activation before plugin is loaded
- Does heavy theme and plugins affect server’s response time? [closed]
- A question about register_activation hook
- One sub site is slow while all others load fine, same theme & plugins [closed]
- What are the performance hiccups when building plugins?
- Basic function call on init failing
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- WordPress stats: OWA plugin overhead in the future
- Performance impact with inactive plugins? [duplicate]
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- Plugin has added weird data in wp_options, set to autoload
- register_activation_hook() not working as expected
- Super slow plugin page (lots of error 500)
- Sub Plugin deactivation when Parent Plugin deactivate
- Install theme as part of a plugin
- How to debug periodic performance issue
- Is option_active_plugins actually doing anything useful?
- Hidden Elementor sections slow down website. How to fix this? [closed]
- How can i store cache of wordpress a database request without plugins?
- How can I wordpress cache a database request with no existing plugin?
- When to store store plugin options as a single database record?
- WordPress Website is very slow after migration
- Automatically install bundled plugins during theme activation?