Fix for Issue #3367
Fixed a bug where the application attempts to schedule an event using a function name rather than a hook name
This commit is contained in:
parent
4d24dad5f6
commit
9898aee867
|
@ -297,7 +297,7 @@ function wc_cancel_unpaid_orders() {
|
|||
}
|
||||
|
||||
wp_clear_scheduled_hook( 'woocommerce_cancel_unpaid_orders' );
|
||||
wp_schedule_single_event( time() + ( absint( $held_duration ) * 60 ), 'wc_cancel_unpaid_orders' );
|
||||
wp_schedule_single_event( time() + ( absint( $held_duration ) * 60 ), 'woocommerce_cancel_unpaid_orders' );
|
||||
}
|
||||
add_action( 'woocommerce_cancel_unpaid_orders', 'wc_cancel_unpaid_orders' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue