Maybe someone will make use of it, I had a similar problem and the solution was to call time()
instead of current_time( 'timestamp' )
as the first argument of wp_schedule_event()
.
So it should look like this: wp_schedule_event( time(), 'custom_interval', 'custom_hook' );
I tried to find a difference between time and current_time(‘timestamp’), but they appear to return the same output, int unix time.
Related Posts:
- Which action for triggering cron “wp”or “init”?
- wp_schedule_event in a class
- WP Cron – Run Cron after evey 15 minutes at a specific time for the next three hours
- Using wp_cron with custom time interval and the register activation hook
- WordPress scheduled task is called but not executed
- Problem creating cron job wordpress
- How Do I Make WordPress Run an Event Every Day?
- How can I change the frequency of a scheduled event?
- Hourly WP schedule, do I need at least 1 visitor hourly?
- WP Cron doesn’t save or in post body
- 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
- Scheduling a task using class methods
- What is minimum time interval for which a cron be scheduled?
- Will cron job run if page loaded is being served from cache?
- Use wp_set_post_terms() instead of wp_insert_post()
- Programmatically detect if wp-cron is disabled?
- How to schedule a cron job in plugin without waiting for page load request?
- How to perform a heavy and long process in cron jobs?
- WordPress daily cron is executing more frequently than once a day
- wp-cron and execution of code in is_admin() included script
- How to Trigger WP CRON at Local Timestamp?
- WP Cron being triggered but not working as expected
- wp_schedule_event() set daily, but processed every second
- Will I get an error if I try unscheduling a WP Cron scheduled task that wasn’t scheduled?
- Looking for a better way to initiate cron job
- WordPress plugin cron working only if admin is logged in
- How to make a cronjob type plugin
- wp_schedule_single_event is set correctly but sometimes not fired
- How to Run Plugin on Server Without Web Browser
- Plugin with functions inside a class & how to trigger WP CRON
- How and when would I implement some code which would take data from one part of the Db and put it in another?
- WP Cron as Fast as WordPress AJAX?
- Detect each active instance of a widget
- What is the use of wp_schedule_event hook?
- Can wp_schedule_single_event be used to run background proccess?
- Call do_action() within WordPress cronjob
- Running one-off cron jobs when WP_DISABLE_CRON is true: can I hit /wp-cron.php?
- wp cron does not run when i am not logged in to wp admin
- Where to store PHP files created by plugin / themes
- WordPress 4.5 deprecated get_currentuserinfo()
- How to control output of custom post type without modifying theme?
- Admin config screen without menu
- What is the added “complexity” of custom tables?
- Why does preg_replace_callback never fire in this function?
- WordPress 2.8 Widget API is suitable for Worpress 3.1.4 plugins development?
- Call to undefined function get_blog_option()
- Unable to get content from $post on first publish
- Broken markup when using the_excerpt() in a widget?
- Best Practices for Creating and Handling Forms with Plugins?
- Gutenberg Block add element in the Editor inside InnerBlocks after div – editor-block-list
- Get the password key when using the wp_new_user_notification_email filter
- WordPress API have Plugin Anti-piracy feature?
- Plugin options not being saved or created
- Customizer: widget-synced triggers twice
- Plugin Repo: Why do some plugins get version charts while others don’t?
- maintaing consistent layout wordpress dashboard
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- user_register not triggering with email verification
- Why is the WordPress taxonomy not registering?
- Checking for existence of a page by title?
- How can I identify it as admin page or not?
- AJAX form post returns 0
- Adding admin menus to wordpress
- Autogenerate a Table of Contents
- Why enqueue styles on hook?
- Fatal error: Cannot redeclare admin_notice() [closed]
- Using function from enqueued .js file in theme in plugin?
- how to save wp_editor html content in options table
- Plugin Form Submitting to admin-ajax.php instead of admin-post.php
- Unable to access custom plugin backend
- Resize not resizing images with Capitial extension like JPG
- Redirect returning users to a certain page?
- WP_List_Table Inside Metabox With Bulk Actions Not Working on Submit
- Attaching Image-file to userId
- Can’t load a script in my plugin page
- Add New Button in Admin Panel
- ajax call return 406 not acceptable for non logged users only
- Counter not working correctly
- Remove tag from all posts when publishing new post
- How to store in the database directly the translation?
- How to affect front page by plugin
- What is the “best” way to update a theme via a plugin?
- Is there a an option to modify the post content directly on the browser instead of having it reflected on browser by modifying in the database?
- Acessing WP functions in form submission handler
- Custom theme and plugin updating
- What method should I use to store my plugin data (multi level menus with options on each item)
- Error on using __FILE__ for add_menu_page() Function
- Getting error of unexpected output during activation
- Use custom clean URLs for a plug in
- An adiitional function fires on my AJAX submit
- Projectmanager Internal Link Code Location
- Select options not reloading after form submit
- How to add something after a function
- Plugin SVN folder structure
- how many rupee or dollar charge to client to make theme [closed]
- What is the meta_query key name for the woo product average rating? [closed]
- how to catch a data from a array in WordPress
- External api call using wordpress
- Set link dialog to open in blank by default