woocommerce_email_recipient_no_stock
Использование
add_filter( 'woocommerce_email_recipient_no_stock', 'wp_kama_woocommerce_email_recipient_no_stock_filter', 10, 3 ); /** * Function for `woocommerce_email_recipient_no_stock` filter-hook. * * @param $option * @param $product * @param $null * * @return */ function wp_kama_woocommerce_email_recipient_no_stock_filter( $option, $product, $null ){ // filter... return $option; }
- $option
- -
- $product
- -
- $null
- -
Где вызывается хук
woocommerce_email_recipient_no_stock
woocommerce/includes/class-wc-emails.php 738
apply_filters( 'woocommerce_email_recipient_no_stock', get_option( 'woocommerce_stock_email_recipient' ), $product, null ),