woof_subscribe_lang
Filters the subscription language text for the Products Messenger extension, allowing customization of the language/locale string stored with each product alert subscription.
Parameters
$lang (string) — The current subscription language string from $this->subscribe_lang property
Source File
ext/products_messenger/index.php:326
Code Example
add_filter('woof_subscribe_lang', function($lang) {
// Force a specific locale for subscriptions
return 'en_US';
});
Usage Notes
- Used during the AJAX subscription creation process.
- The subscribe_lang value is stored in user meta as part of the subscription data.
- Part of the Products Messenger extension for user product alerts.