woocommerce_email_group_title filter-hookWC 10.3.0

Filter the email group title.

Usage

add_filter( 'woocommerce_email_group_title', 'wp_kama_woocommerce_email_group_title_filter', 10, 3 );

/**
 * Function for `woocommerce_email_group_title` filter-hook.
 * 
 * @param string $title        The email group title.
 * @param string $email_group  The email group slug.
 * @param array  $email_groups Associative array of email group slugs => titles.
 *
 * @return string
 */
function wp_kama_woocommerce_email_group_title_filter( $title, $email_group, $email_groups ){

	// filter...
	return $title;
}
$title(string)
The email group title.
$email_group(string)
The email group slug.
$email_groups(array)
Associative array of email group slugs => titles.

Changelog

Since 10.3.0 Introduced.

Where the hook is called

WC_Email::get_email_group_title()
woocommerce_email_group_title
woocommerce/includes/emails/class-wc-email.php 490
return (string) apply_filters( 'woocommerce_email_group_title', $title, $this->email_group, $email_groups );

Where the hook is used in WooCommerce

Usage not found.