From 721ff370952e4b7a3638764c803b434045820d6a Mon Sep 17 00:00:00 2001 From: moon Date: Wed, 30 Mar 2022 21:02:52 -0700 Subject: [PATCH] Support woocommerce_payment_gateways_setting_additional_rows filter to allow adding additional table rows --- .../admin/settings/class-wc-settings-payment-gateways.php | 4 ++++ 1 file changed, 4 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 6d4362ecb83..e7eca9216e6 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 @@ -124,6 +124,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page { ); $columns = apply_filters( 'woocommerce_payment_gateways_setting_columns', $default_columns ); + $additional_rows = apply_filters( 'woocommerce_payment_gateways_setting_additional_rows', array(), count( $columns ) ); foreach ( $columns as $key => $column ) { echo '' . esc_html( $column ) . ''; @@ -201,6 +202,9 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page { echo ''; } + foreach ( $additional_rows as $additional_row ) { + echo $additional_row; + } ?>