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:
crazyscience 2014-03-07 11:17:11 -08:00
parent 4d24dad5f6
commit 9898aee867
1 changed files with 1 additions and 1 deletions

View File

@ -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' );