WC_Register_WP_Admin_Settings::register_email_group
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.
Returns
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() WC Register WP Admin Settings::register email group code WC 10.3.6
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;
}