From 47bd97862a7757eb6aeeee30aad5213ae9cd5744 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 14 Jan 2019 15:09:07 +0000 Subject: [PATCH] Change priority of notices on the account page so they appear above forms/content --- includes/wc-template-hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-template-hooks.php b/includes/wc-template-hooks.php index 2964a9240ed..201334b1db9 100644 --- a/includes/wc-template-hooks.php +++ b/includes/wc-template-hooks.php @@ -299,7 +299,7 @@ add_action( 'woocommerce_before_single_product', 'woocommerce_output_all_notices add_action( 'woocommerce_before_cart', 'woocommerce_output_all_notices', 10 ); add_action( 'woocommerce_before_checkout_form_cart_notices', '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_account_content', 'woocommerce_output_all_notices', 5 ); add_action( 'woocommerce_before_customer_login_form', 'woocommerce_output_all_notices', 10 ); add_action( 'woocommerce_before_lost_password_form', 'woocommerce_output_all_notices', 10 ); add_action( 'before_woocommerce_pay', 'woocommerce_output_all_notices', 10 );