Use hook instead

This commit is contained in:
Claudio Sanches 2018-11-05 18:40:00 -02:00
parent 0da8f23253
commit c9d62e506a
2 changed files with 1 additions and 2 deletions

View File

@ -79,8 +79,6 @@ class WC_Shortcode_Checkout {
do_action( 'before_woocommerce_pay' );
wc_print_notices();
$order_id = absint( $order_id );
// Pay for existing order.

View File

@ -300,3 +300,4 @@ add_action( 'woocommerce_before_cart', 'woocommerce_output_all_notices', 10 );
add_action( 'woocommerce_before_checkout_form', 'woocommerce_output_all_notices', 10 );
add_action( 'woocommerce_account_content', 'woocommerce_output_all_notices', 10 );
add_action( 'woocommerce_before_customer_login_form', 'woocommerce_output_all_notices', 10 );
add_action( 'before_woocommerce_pay', 'woocommerce_output_all_notices', 10 );