woocommerce_email_subject_(id) хук-фильтрWC 1.0

Get email subject.

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

add_filter( 'woocommerce_email_subject_(id)', 'wp_kama_woocommerce_email_subject_id_filter', 10, 3 );

/**
 * Function for `woocommerce_email_subject_(id)` filter-hook.
 * 
 * @param  $format_string 
 * @param  $object        
 * @param  $that          
 *
 * @return 
 */
function wp_kama_woocommerce_email_subject_id_filter( $format_string, $object, $that ){

	// filter...
	return $format_string;
}
$format_string
-
$object
-
$that
-

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

WC_Email::get_subject()
woocommerce_email_subject_(id)
woocommerce/includes/emails/class-wc-email.php 414
return apply_filters( 'woocommerce_email_subject_' . $this->id, $this->format_string( $this->get_option( 'subject', $this->get_default_subject() ) ), $this->object, $this );

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

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