WC_Register_WP_Admin_Settings::register_page_group()
Registers a setting group, based on admin page ID & label as parent group.
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_page_group( $groups );
- $groups(array) (required)
- Array of previously registered groups.
Changelog
Since 3.0.0 | Introduced. |
WC_Register_WP_Admin_Settings::register_page_group() WC Register WP Admin Settings::register page group code WC 9.4.2
public function register_page_group( $groups ) { $groups[] = array( 'id' => $this->object->get_id(), 'label' => $this->object->get_label(), ); return $groups; }