woocommerce_payment_gateway_save_new_payment_method_option_html

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

Paramètres

Entrée :
$html, $this
Sortie :
@param string $html Checkbox HTML.
@param WC_Payment_Gateway $this Payment gateway instance.
@return string

Utilisation

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

function ma_fonction_filtre($html) {
    // Modifier la valeur
    return $html;
}

Actualités

Chargement des actualités...