wp-cron event doesn’t run when custom login API is enabled
wp-cron event doesn’t run when custom login API is enabled
wp-cron event doesn’t run when custom login API is enabled
I found the answer to my own question. I am leaving this here in case anyone else runs into the same issues. Basically, post_exists() wants detecting duplicate posts because I didn’t put a file path for it. I needed to include within the function. require_once ABSPATH . ‘/wp-admin/includes/post.php’;
I hate to tell you this, but you have a typo that’s causing the problem. ‘order ‘=>’asc’, should be ‘order’ => ‘asc’, (Notice the space inside the ‘order ‘ string.) If that’s not the issue, I’d to a string search on all the files in wp-content for pre_get_posts to see if the theme or a … Read more
wp_schedule_event doesn’t work
Your access logs will show all requests (traffic) to your site, including those that resulted in 404s. I suspect that your 404 page is not calling your function, so the request is not tracked. You should be able to get your access log from your hosting place, via the cPanel (assuming you are not self-hosted). … Read more
Uh, I’m really developing a habit of answering my own questions. Turns out, you CAN queue multiple instaces for the same hook in WP-cron. The data that WP cron uses to separate the instances is the ARGUMENTS. They cannot be the same, or WP refuses to create the new cron job.
Check cache is disabled on live, then try. This is 99% likely a cache issue. If it was the other way around it would likely point to a FQDN issue whereby the domain does not resolve and you would need to modify host files.
wp-cron.php not being triggered by wp_remote_post in spawn_cron()
Real cron killed my cron system. Only define( ‘ALTERNATE_WP_CRON’, true ); works
Finally i can able to achieve it. // custom_schedules_create function custom_schedules_create( $schedules ) { $schedules[‘every_three_minutes’] = array( ‘interval’ => 180, ‘display’ => __( ‘Every 3 Minutes’, ‘textdomain’ ) ); return $schedules; } add_filter( ‘cron_schedules’, ‘custom_schedules_create’ ); // custom_3minutes_event if ( ! wp_next_scheduled( ‘custom_3minutes_event’ ) ) { $myLocalGMTTimeEvent = time() + 6*60*60; wp_schedule_event( $myLocalGMTTimeEvent, ‘every_three_minutes’, ‘custom_3minutes_event’ … Read more