Broken resync code fix
-
Hello,
Your resync feature doesn’t work right if I delete all customers/orders. This is because your cron schedule isn’t initializing
Please have your developers replace the cron schedule code in omnisend-woocommerce.php with this.add_action( 'wp_loaded', function() {
add_filter( 'cron_schedules', function( $schedules ) {
$schedules['two_minutes'] = array(
'interval' => 60 * 2,
'display' => __( 'Every 2 minutes', 'omnisend-woocommerce' ),
);
return $schedules;
});
});Cron schedules should be initiated after wp_loaded. This code will fix the problem.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Broken resync code fix’ is closed to new replies.