woocommerce_customer_stock_notifications_already_signed_up_message_html
Filter the already signed up message HTML.
Usage
add_filter( 'woocommerce_customer_stock_notifications_already_signed_up_message_html', 'wp_kama_woocommerce_customer_stock_notifications_already_signed_up_message_html_filter', 10, 3 );
/**
* Function for `woocommerce_customer_stock_notifications_already_signed_up_message_html` filter-hook.
*
* @param string|null $pre The message.
* @param WC_Product $product Product object.
* @param Notification $notification Notification object.
*
* @return string|null
*/
function wp_kama_woocommerce_customer_stock_notifications_already_signed_up_message_html_filter( $pre, $product, $notification ){
// filter...
return $pre;
}
- $pre(string|null)
- The message.
- $product(WC_Product)
- Product object.
- $notification(Notification)
- Notification object.
Changelog
| Since 10.2.0 | Introduced. |
Where the hook is called
woocommerce_customer_stock_notifications_already_signed_up_message_html
woocommerce/src/Internal/StockNotifications/Frontend/ProductPageIntegration.php 178
$pre = apply_filters( 'woocommerce_customer_stock_notifications_already_signed_up_message_html', null, $product, $notification );