woocommerce_payment_gateway_get_new_payment_method_option_html_label

woocommerce_payment_gateway_get_new_payment_method_option_html_label

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_payment_gateway_get_new_payment_method_option_html_label') is found 1 times:

  • /includes/abstracts/abstract-wc-payment-gateway.php line 623
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    * @param string $label Label.
     * @param WC_Payment_Gateway $this Payment gateway instance.
     * @return string
     */
    $label = apply_filters( 'woocommerce_payment_gateway_get_new_payment_method_option_html_label', $this->new_method_label ? $this->new_method_label : __( 'Use a new payment method', 'woocommerce' ), $this );
    $html  = sprintf(
        '<li class="woocommerce-SavedPaymentMethods-new">
            <input id="wc-%1$s-payment-token-new" type="radio" name="wc-%1$s-payment-token" value="new" style="width:auto;" class="woocommerce-SavedPaymentMethods-tokenInput" />
            <label for="wc-%1$s-payment-token-new">%2$s</label>
        </li>',
        esc_attr( $this->id ),