woocommerce_payment_gateway_get_new_payment_method_option_html_label

FILTER woocommerce\includes\abstracts\abstract-wc-payment-gateway.php (ligne 626) github
Filter the saved payment method label.

Paramètres

Entrée :
$this->new_method_label ? $this->new_method_label : __( 'Use a new payment method', 'woocommerce'
Sortie :
@param string $label Label.
@param WC_Payment_Gateway $this Payment gateway instance.
@return string

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_payment_gateway_get_new_payment_method_option_html_label'
add_filter('woocommerce_payment_gateway_get_new_payment_method_option_html_label', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($this->new_method_label ? $this->new_method_label : __( 'Use a new payment method') {
    // Modifier la valeur
    return $this->new_method_label ? $this->new_method_label : __( 'Use a new payment method';
}

Actualités

Chargement des actualités...