WC_Email::get_email_group_title
Get the title for the current email group.
Method of the class: WC_Email{}
Hooks from the method
Returns
String. The email group title. Falls back to the email group slug if not found.
Usage
$WC_Email = new WC_Email(); $WC_Email->get_email_group_title();
Changelog
| Since 10.3.0 | Introduced. |
WC_Email::get_email_group_title() WC Email::get email group title code WC 10.7.0
public function get_email_group_title() {
$email_groups = $this->get_email_groups();
$title = isset( $email_groups[ $this->email_group ] ) ? $email_groups[ $this->email_group ] : $this->email_group;
/**
* Filter the email group title.
*
* @since 10.3.0
* @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) apply_filters( 'woocommerce_email_group_title', $title, $this->email_group, $email_groups );
}