woocommerce_mail_content хук-фильтрWC 1.0

wrap the content with the email template and then add styles.

Использование

add_filter( 'woocommerce_mail_content', 'wp_kama_woocommerce_mail_content_filter' );

/**
 * Function for `woocommerce_mail_content` filter-hook.
 * 
 * @param  $style_inline 
 *
 * @return 
 */
function wp_kama_woocommerce_mail_content_filter( $style_inline ){

	// filter...
	return $style_inline;
}
$style_inline
-

Где вызывается хук

WC_Admin::preview_emails()
woocommerce_mail_content
WC_Email::send()
woocommerce_mail_content
woocommerce/includes/admin/class-wc-admin.php 207
$message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
woocommerce/includes/emails/class-wc-email.php 687
$message              = apply_filters( 'woocommerce_mail_content', $this->style_inline( $message ) );

Где используется хук в WooCommerce

Использование не найдено.