woocommerce_customer_stock_notifications_personalization_enabled filter-hookWC 10.2.0

Filter whether personalization is enabled while rendering the form.

Usage

add_filter( 'woocommerce_customer_stock_notifications_personalization_enabled', 'wp_kama_woocommerce_customer_stock_notifications_personalization_enabled_filter' );

/**
 * Function for `woocommerce_customer_stock_notifications_personalization_enabled` filter-hook.
 * 
 * @param bool $enabled Whether personalization is enabled.
 *
 * @return bool
 */
function wp_kama_woocommerce_customer_stock_notifications_personalization_enabled_filter( $enabled ){

	// filter...
	return $enabled;
}
$enabled(true|false)
Whether personalization is enabled.

Changelog

Since 10.2.0 Introduced.

Where the hook is called

ProductPageIntegration::is_personalization_enabled()
woocommerce_customer_stock_notifications_personalization_enabled
woocommerce/src/Internal/StockNotifications/Frontend/ProductPageIntegration.php 240
return (bool) apply_filters( 'woocommerce_customer_stock_notifications_personalization_enabled', false );

Where the hook is used in WooCommerce

Usage not found.