WC_Payment_Gateway::save_payment_method_checkbox()
Outputs a checkbox for saving a new payment method to the database.
Description Description
Source Source
File: includes/abstracts/abstract-wc-payment-gateway.php
public function save_payment_method_checkbox() { $html = sprintf( '<p class="form-row woocommerce-SavedPaymentMethods-saveNew"> <input id="wc-%1$s-new-payment-method" name="wc-%1$s-new-payment-method" type="checkbox" value="true" style="width:auto;" /> <label for="wc-%1$s-new-payment-method" style="display:inline;">%2$s</label> </p>', esc_attr( $this->id ), esc_html__( 'Save to account', 'woocommerce' ) ); echo apply_filters( 'woocommerce_payment_gateway_save_new_payment_method_option_html', $html, $this ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |