woocommerce_mail_content хук-фильтр . WC 1.0
wrap the content with the email template and then add styles.
Использование
add_filter( 'woocommerce_mail_content', 'filter_function_name_303' ); function filter_function_name_303( $style_inline ){ // filter... return $style_inline; }
- $style_inline
- -
Где вызывается хук
woocommerce_mail_content
woocommerce/includes/admin/class-wc-admin.php 201
$message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
woocommerce/includes/emails/class-wc-email.php 650
$message = apply_filters( 'woocommerce_mail_content', $this->style_inline( $message ) );