If it’s a one-time maintenance issue then run the code manually at a time you chose.
If it’s a periodic maintenance task that might be heavy, use unix cron.
Otherwise, wp-cron can be used. You’re probably using it more than you know already. This plugin is great for monitoring wp-cron.
Related Posts:
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- Schedule WordPress Auto-Updates to only run during business hours
- What happens when wp_cron is deactivated in WordPress?
- wp_schedule_single_event function not working
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- Why is wp-cron only executing on page visit?
- wp_schedule_single_event not working: cron job is triggered but nothing gets executed
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- How to set intervals in cron jobs?
- Switch from wp-cron to a server cron job
- What causes wp_schedule_single_event to fire off?
- WordPress cron job running more than once
- Cron: Update four post at Hour
- Activate Plugin Automatically After Set Time
- WP_CRON issue with UTC and local time
- Better way to run heavy scripts using WordPress database
- WordPress Cron function is not working
- WordPress crob job performance
- Adding custom cron_schedule prior to wp_schedule_event
- WordPress “wp cron event run” as Siteground cron job
- CPU Overloading due to some hooks
- Cron Job not working
- Do deactivated plugins slow down a WordPress site?
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- How can I modify what is being output in wp_head, whether by a theme or WordPress in general?
- Is there a maintenance mode in WordPress core?
- 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
- How to make sure a wp-cron job runs
- How do I email a new page password to somebody every month?
- Is it good practice to remove redundant plugins and themes?
- WordPress tips for speed and performance [closed]
- Do Plugins effect site loading time?
- Updating WooCommerce variable product stock issue
- Long running action from plugin
- wp_schedule_event / cron_schedules – custom recurrence time not working in Plugin
- Should I add sharing buttons using a plugin or directly in my theme files?
- Can plugins become obsolete?
- Posts wont expire
- What are the performance hiccups when building plugins?
- WordPress stats: OWA plugin overhead in the future
- Performance impact with inactive plugins? [duplicate]
- How to see which sites use my installed plugins (wordpress multisite)
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- Plugin has added weird data in wp_options, set to autoload
- WordPress Console Application (ability to excecute a custom function via crontab only)
- Super slow plugin page (lots of error 500)
- get_edit_post_link() not working on wp-cron
- get_users(); Is an Undefined Function When Used in Cron Job
- Plugin scheduled event not working
- Profile / benchmark wordpress on apache?
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- should i use GLOB_ONLYDIR to hook add-ons for wordpress plugin
- Minification Plugins break my website
- I’m looking for a plugin to execute a specific task a certain time
- Offloading cron jobs
- How can i find the cron jobs that run on my site and then move them to the server side?
- How to customize maintenance mode notification in wordpress?
- Can/should we delete wordpress cron jobs with no action?
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Save log for imports in WordPress database – options-table, custom post type or other place?
- “Disable” specific plugins on certain pages
- is there a way to preload specific images for desktop users only? (excluding mobile users)
- WP Import All Multiple Dynamic Link Imports
- How to remove Unused CSS From a WordPress Theme?
- reminder wp_schedule_event
- Profiling the initial PHP file, anyone, that get like 10 seconds to load
- Cron task gets removed from the schedule
- get_posts query results out of order but shows correct in php snippets plugin
- my hook or my function wont run in the cronjob
- Cron job shedules replace?
- Scheduled cron event removed from list automatically after sometime
- Run a Change Role Cron Job on WordPress via cPanel
- Enable a Coming Soon Page while the rest of the site is accessible
- Cron job emails blank
- wp_schedule_event function reference
- Searched & tried a lot: Is it Possible to Eliminate Render Blocking Manually
- Coming soon pages with rest of site in maintenance mode
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- API calls on plugin activation or init?
- Is saving multiple options or saving multiple items in one option better?
- Very Slow loading. Plugins report provided by P3 included
- Using a Cron Job to dynamically populate a field ONCE, and then making the field blank the next time someone visits page
- Plugin Hooks Not Shown in WP Cron Jobs
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- Plugins to generate CSS Sprites? [closed]
- Combining JS files to one script
- Eliminate Render blocking CSS?
- How to debug periodic performance issue
- Is option_active_plugins actually doing anything useful?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Hidden Elementor sections slow down website. How to fix this? [closed]
- Can’t update plugins in WordPress, system returns -1
- 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
- Finding plugin that makes this part of page (finding sweetwinsprizes.info virus’s origin)
- What is this async request in wordpress