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.

Метод класса: WC_Register_WP_Admin_Settings{}

Хуков нет.

Возвращает

Массив.

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

$WC_Register_WP_Admin_Settings = new WC_Register_WP_Admin_Settings();
$WC_Register_WP_Admin_Settings->register_email_group( $groups );
$groups(массив) (обязательный)
Existing registered groups.

Список изменений

С версии 3.0.0 Введена.

Код WC_Register_WP_Admin_Settings::register_email_group() 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;
}