woocommerce_customer_stock_notifications_already_signed_up_message_html
Filter the already signed up message HTML.
Использование
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(строка|null)
- The message.
- $product(WC_Product)
- Product object.
- $notification(Notification)
- Notification object.
Список изменений
| С версии 10.2.0 | Введена. |
Где вызывается хук
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 );