As described in wp_schedule_event first parameter is $timestamp
– the first time that you want the event to occur. So just add interval to $timestamp. I think it should be like
wp_schedule_event( time() + $delay, 'interval1', 'my_cron_hook' );
And set $delay
as miliseconds before hook starts.
Related Posts:
- Running WordPress on the Command Line – Turn off Delayed Output?
- How is WP Cron Locking implemented?
- Better handling of WP-CRON server load abuse
- When does next Cron Job run (time from now)?
- run a cron task without obstructing page load?
- Recurring scheduled task help
- Trigger a cron every 24h GMT -8
- WordPress Cron Schedule the if and else statement
- Schedule event every second thursday of the month
- How do i schedule cron in wordpress for each second?
- WP Cron job every 1st and 15th of the month
- Template Tag not available in real Cron Jobs
- WordPress Caching – Transients API or “update_user_meta ” Cronjob?
- WP CRON on shared hosting that does not allow loopback connections?
- Is it possible to use `wp_schedule_event` with real cronjobs?
- How to use wp cron job to run a function
- Are uploads directories created on a schedule?
- Create wp_cront events dynamically upon user submission
- WordPress can’t seem to handle tens of thousands of scheduled posts? Cron Breaks
- WP Cron Doesn’t Execute When Time Elapses
- Delete thousands of cron jobs
- Do WordPress cron jobs slow down page loading?
- Get frequency of scheduled event
- What happens when wp_cron is deactivated in WordPress?
- Hourly WP schedule, do I need at least 1 visitor hourly?
- Why?: hundreds of empty files named wp-cron.php?doing_wp_cron.
- Can’t access wp_filesystem in cron function
- Multiple wp_schedule_event cron jobs in plugin cause multi-execution
- Is it safe to run wp-cron.php twice if the first instance takes too long?
- ”doing_wp_cron” in URL even if ALTERNATE CRON is not in wp-config
- execute function in wordpress plugin using crontab
- Automated mark posts as featured every day
- Auto Delete Users (auto_delete_users)
- Is there any background process that I can run from plugin without depending on page hits on a website without affecting page-load speed?
- WordPress cron running twice
- wp_schedule_single_event function not working
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- Sending out scheduled emails
- Will WordPress use the newer schedule if it is updated using the filter ‘cron_schedules’?
- Scheduling posts on wordpress adds wrong seconds as post_date
- Web Scraping with Cron
- Will cron job run if page loaded is being served from cache?
- wp_schedule_event run in background or not?
- WP Cron is “half-failing” to insert posts
- How to schedule a cron job in plugin without waiting for page load request?
- Cron schedule not updating after run
- Which file do I run a cron job on to make Twitter News Feed update more often?
- export a csv file from the database with a cronjob
- Manual Cron job occasionally outputting WP die message
- wp_schedule_single_event not working: cron job is triggered but nothing gets executed
- WP All Import manual Cron
- Is there way to run a code every time when any cron is run?
- How refresh wp_schedule_event without restart a plugin
- wp-cron behaviour when there are multiple queued tasks
- Cron job script – loading wordpress system fails
- WP Cron job timeout issues
- Cron job not working – Can’t see in the queue attached
- Set post to unpublished after one week depending on condition
- WP cron doesn’t pass through my arguments
- “Missed schedule” posting bug
- How to force ‘cron_schedules’ every minute instead 1 hour?
- Use cron to create a non blocking task
- What is the best practice to set and update Transient value of API data in every minute?
- How to create and run cronjob in WP without using the plugin?
- Plugin has a cron job, but the function doesn’t actually run
- A unique wp_schedule_single_event() for each post?
- Large WordPress CRON job
- Manually running cron from the server
- Cron jobs when running multiple instances on the same DB
- How to Schedule Cronjobs for start of every month and year
- WordPress Cron job, 302 response
- WordPress cronjob get scheduled but function does not run
- wp_schedule_event didn’t work
- wp_schedule_event action not running
- pingbacks testing
- Offloading cron jobs
- Set up a WP Cron scheduled event to update calculated ACF field
- Time limit on long cron job?
- Cron: Update four post at Hour
- CRON job to update wp_usermeta value each day or week based on server time
- Php cron job (wp-cron) not working
- Most efficient way to trigger wp-cron through system cron.
- Add cron schedule to upload video on save_post
- How to make sure WP-CRON job loops through all posts?
- I want to write something that restarts the httpd service when my apache server dies
- WordPress Cron function is not working
- WP Cron as Fast as WordPress AJAX?
- Huge cron option_value into wp_options table
- WordPress Multisite Cron Issue
- setting up a wp cron job
- What is the use of wp_schedule_event hook?
- Cron jobs repeating themselves
- Adding custom cron_schedule prior to wp_schedule_event
- Running one-off cron jobs when WP_DISABLE_CRON is true: can I hit /wp-cron.php?
- Cron event running more than once if triggered from WP Crontrol
- How to know if WP cron is currently running my hook?
- how to create a cron job that runs on the first day of month [duplicate]
- escaping double quotes and percent signs (%) in cron
- Custom cronjob not executing at all, but manually
- ‘wp_site_health_scheduled_check’ Causes Failure Of Other Scripts