Automattic\WooCommerce\Internal\StockNotifications\Frontend
ProductPageIntegration::is_personalization_enabled
Whether personalization is enabled.
Personalization includes checking if the user is already signed up and displaying the 'already signed up' message.
Метод класса: ProductPageIntegration{}
Возвращает
bool. True if personalization is enabled, false otherwise.
Использование
$result = ProductPageIntegration::is_personalization_enabled(): bool;
Код ProductPageIntegration::is_personalization_enabled() ProductPageIntegration::is personalization enabled WC 11.2.2
public static function is_personalization_enabled(): bool {
/**
* Filter whether personalization is enabled while rendering the form.
*
* @since 10.2.0
*
* @param bool $enabled Whether personalization is enabled.
* @return bool
*/
return (bool) apply_filters( 'woocommerce_customer_stock_notifications_personalization_enabled', false );
}