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
- What is the curl error 52 “empty reply from server”?
- How to test wp_cron?
- How to debug WordPress “Cron” wp_schedule_event
- Running WP Cron on multisite the right way
- WP Cron Doesn’t Execute When Time Elapses
- Delete thousands of cron jobs
- Check if function called by cron job
- Wp_Schedule_Event every day at specific time
- Do WordPress cron jobs slow down page loading?
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- Delete all scheduled events with a particular hook
- WordPress cron isn’t scheduled on amazon web services
- Schedule WordPress Auto-Updates to only run during business hours
- wp-cron.php – How are WP’s Cron transients removed?
- Get frequency of scheduled event
- wp_schedule_event not working?
- Need to execute a cron job
- crontab wp-cron.php on multisite path-based network: one for each path? Or just one for the root?
- What happens when wp_cron is deactivated in WordPress?
- Running wp-cron from CLI
- How Do I Make WordPress Run an Event Every Day?
- get_posts inside cron
- Hourly WP schedule, do I need at least 1 visitor hourly?
- Initialize WordPress environment to use in a real cron script
- Cron jobs for deactivated plugins
- Why?: hundreds of empty files named wp-cron.php?doing_wp_cron.
- Can’t access wp_filesystem in cron function
- Cronjob not working as expected – issue with hook?
- WP CRON runs only the first time
- Multiple wp_schedule_event cron jobs in plugin cause multi-execution
- WP Cron emails not working
- Run function at specific time
- 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
- Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?
- 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
- Check if event was scheduled – schedule event only once
- How do I get a Function in my functions.php to execute with a cron job?
- How to notify the admin about something that happened during a cron job
- Cronjob returns a lot of REMOTE_ADDR, SERVER_PORT, SERVER_NAME, etc errors
- Create function in functions.php with hook name to execute URL
- How to remove unused avatar uploads in buddypress [closed]
- Will WordPress use the newer schedule if it is updated using the filter ‘cron_schedules’?
- cron.php being constantly deleted [closed]
- Scheduling posts on wordpress adds wrong seconds as post_date
- Does wp-cron runs all tasks scheduled at same time together or one after other?
- “Error establishing database connection” when trying to run script through crontab
- Web Scraping with Cron
- Insert WordPress page via external (cron) script?
- Why is wp-cron only executing on page visit?
- Will cron job run if page loaded is being served from cache?
- wp_schedule_event run in background or not?
- How to Better Control WordPress Cron Jobs?
- WP Super Cache All Pages [closed]
- WP Cron is “half-failing” to insert posts
- Any insights into Transient API locking, cron and threading?
- Detect if Cron is Running
- Set a menu item to display during certain times
- Run function with linux cron job in WordPress
- Schedule cron don’t work
- Auto Publish On Cron
- WordPress Cron how to find out my event recurrence?
- Wp Maintenance mode and external cron job
- How to schedule a cron job in plugin without waiting for page load request?
- Cron schedule not updating after run
- How to use a class within a cron job function
- Can a scheduler be set on submit of a form in wordpress?
- Cron and WP Super Cache in Preload Mode
- WordPress Cron Job in Bookly Plugin [closed]
- Can you register two cron events in a single function?
- When to use wp_schedule_single_event for async / non-blocking processes?
- Which file do I run a cron job on to make Twitter News Feed update more often?
- Remind a user about their account if they have not used it for 6 months
- Does using WP-cron make the site slower for the user?