woocommerce_customer_stock_notifications_personalization_enabled

FILTER woocommerce\src\Internal\StockNotifications\Frontend\ProductPageIntegration.php (ligne 240) github
Filter whether personalization is enabled while rendering the form.

Paramètres

Entrée :
false
Sortie :
@param bool $enabled Whether personalization is enabled.
@return bool

Utilisation

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

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

Actualités

Chargement des actualités...