woocommerce_email_get_option
Использование
add_filter( 'woocommerce_email_get_option', 'wp_kama_woocommerce_email_get_option_filter', 10, 4 ); /** * Function for `woocommerce_email_get_option` filter-hook. * * @param $value * @param $that * @param $key * @param $empty_value * * @return */ function wp_kama_woocommerce_email_get_option_filter( $value, $that, $key, $empty_value ){ // filter... return $value; }
- $value
- -
- $that
- -
- $key
- -
- $empty_value
- -
Где вызывается хук
woocommerce_email_get_option
woocommerce/includes/emails/class-wc-email.php 556
return apply_filters( 'woocommerce_email_get_option', $value, $this, $value, $key, $empty_value );