woocommerce_checkout_get_value

FILTER woocommerce\includes\class-wc-checkout.php (ligne 1412) github
Gets the value either from POST, or from the customer object. Sets the default values in checkout fields.

Paramètres

Entrée :
null, $input
Sortie :
@param string $input Name of the input we want to grab data for. e.g. billing_country.
@return string The default value.

Utilisation

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

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

Actualités

Chargement des actualités...