diff --git a/includes/abstracts/abstract-wc-payment-gateway.php b/includes/abstracts/abstract-wc-payment-gateway.php index f2e6188618e..e8f30713a42 100644 --- a/includes/abstracts/abstract-wc-payment-gateway.php +++ b/includes/abstracts/abstract-wc-payment-gateway.php @@ -516,7 +516,7 @@ abstract class WC_Payment_Gateway extends WC_Settings_API { * @since 2.6.0 */ public function save_payment_method_checkbox() { - printf( + $html = sprintf( '

@@ -524,6 +524,8 @@ abstract class WC_Payment_Gateway extends WC_Settings_API { esc_attr( $this->id ), esc_html__( 'Save to account', 'woocommerce' ) ); + + echo apply_filters( 'woocommerce_payment_gateway_save_new_payment_method_option_html', $html, $this ); } /**