woocommerce_email_title
Return the email's title
Использование
add_filter( 'woocommerce_email_title', 'wp_kama_woocommerce_email_title_filter', 10, 2 ); /** * Function for `woocommerce_email_title` filter-hook. * * @param $title * @param $that * * @return */ function wp_kama_woocommerce_email_title_filter( $title, $that ){ // filter... return $title; }
- $title
- -
- $that
- -
Где вызывается хук
woocommerce_email_title
woocommerce/includes/emails/class-wc-email.php 517
return apply_filters( 'woocommerce_email_title', $this->title, $this );