WC_Register_WP_Admin_Settings::register_email_group()publicWC 3.0.0

Register's all of our different notification emails as sub groups of email settings.

Method of the class: WC_Register_WP_Admin_Settings{}

No Hooks.

Return

Array.

Usage

$WC_Register_WP_Admin_Settings = new WC_Register_WP_Admin_Settings();
$WC_Register_WP_Admin_Settings->register_email_group( $groups );
$groups(array) (required)
Existing registered groups.

Changelog

Since 3.0.0 Introduced.

WC_Register_WP_Admin_Settings::register_email_group() code WC 8.7.0

public function register_email_group( $groups ) {
	$groups[] = array(
		'id'          => 'email_' . $this->object->id,
		'label'       => $this->object->title,
		'description' => $this->object->description,
		'parent_id'   => 'email',
	);
	return $groups;
}