woocommerce_email_content_low_stock
Использование
add_filter( 'woocommerce_email_content_low_stock', 'wp_kama_woocommerce_email_content_low_stock_filter', 10, 2 ); /** * Function for `woocommerce_email_content_low_stock` filter-hook. * * @param $message * @param $product * * @return */ function wp_kama_woocommerce_email_content_low_stock_filter( $message, $product ){ // filter... return $message; }
- $message
- -
- $product
- -
Где вызывается хук
woocommerce_email_content_low_stock
woocommerce/includes/class-wc-emails.php 706
apply_filters( 'woocommerce_email_content_low_stock', $message, $product ),