Provides an opportunity to override the (potential) requirement for shoppers to verify their email address before we show information such as the order summary, or order payment page. Note that this hook is not always triggered, therefore it is (for example) unsuitable as a way of forcing email verification across all order confirmation/order payment scenarios. Instead, the filter primarily exists as a way to *remove* the email verification step.
$email_verification_required, $order, $context
Sortie :
@param bool $email_verification_required If email verification is required. @param WC_Order $order The relevant order. @param string $context The context under which we are performing this check.
// Modifier la valeur avec le filtre 'woocommerce_order_email_verification_required'
add_filter('woocommerce_order_email_verification_required', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($email_verification_required) {
// Modifier la valeur
return $email_verification_required;
}
Chargement des actualités...