Use hook instead
This commit is contained in:
parent
0da8f23253
commit
c9d62e506a
|
@ -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.
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue