From ab3a015850dc5371e4cbebfe68f59a4880e53241 Mon Sep 17 00:00:00 2001 From: RJChow Date: Mon, 4 Apr 2022 15:40:08 +0800 Subject: [PATCH] add slotfill mount point --- .../admin/settings/class-wc-settings-payment-gateways.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php b/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php index f3a798954f6..19c2d45bea4 100644 --- a/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php +++ b/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php @@ -25,6 +25,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page { $this->id = 'checkout'; // @todo In future versions this may make more sense as 'payment' however to avoid breakage lets leave this alone until we refactor settings APIs in general. $this->label = _x( 'Payments', 'Settings tab label', 'woocommerce' ); + add_action( 'woocommerce_admin_field_payment_gateways_banner', array( $this, 'payment_gateways_banner' ) ); add_action( 'woocommerce_admin_field_payment_gateways', array( $this, 'payment_gateways_setting' ) ); parent::__construct(); } @@ -54,6 +55,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page { 'type' => 'title', 'id' => 'payment_gateways_options', ), + array('type' => 'payment_gateways_banner'), array( 'type' => 'payment_gateways', ), @@ -105,6 +107,11 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page { protected function run_gateway_admin_options( $gateway ) { $gateway->admin_options(); } + public function payment_gateways_banner() { + ?> +
+