WC_Payment_Gateway::save_payment_method_checkbox PHP Méthode

save_payment_method_checkbox() public méthode

Outputs a checkbox for saving a new payment method to the database.
Since: 2.6.0
    public function save_payment_method_checkbox()
    {
        echo 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'));
    }