WordPress at Your Fingertips
function is not described

WC_Register_WP_Admin_Settings::register_email_group() public WC 3.0.0

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

{} It's a 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.

Code of WC_Register_WP_Admin_Settings::register_email_group() WC 5.6.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;
}