From 3cbe88082f4c98cdacb02cb6f6604ec52ce30d30 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 28 Dec 2015 16:07:05 -0200 Subject: [PATCH] Fixed simplify commerce admin notices position, closes #9911 --- .../simplify-commerce/class-wc-gateway-simplify-commerce.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php b/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php index 996c96eeb7c..8f1c18db81e 100644 --- a/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php +++ b/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php @@ -62,7 +62,6 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway { // Hooks add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) ); - add_action( 'admin_notices', array( $this, 'checks' ) ); add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) ); add_action( 'woocommerce_receipt_' . $this->id, array( $this, 'receipt_page' ) ); add_action( 'woocommerce_api_wc_gateway_simplify_commerce', array( $this, 'return_handler' ) ); @@ -101,6 +100,8 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway {

+ checks(); ?> + generate_settings_html(); ?>