Automattic\WooCommerce\Internal\Admin
Loader::add_settings_group
Deprecated since migrate to \Automattic\WooCommerce\Internal\Admin\Settings instead.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Register the admin settings for use in the WC REST API
Method of the class: Loader{}
No Hooks.
Returns
Array.
Usage
$result = Loader::add_settings_group( $groups );
- $groups(array) (required)
- Array of setting groups.
Changelog
| Deprecated | migrate to \Automattic\WooCommerce\Internal\Admin\Settings instead. |
Loader::add_settings_group() Loader::add settings group code WC 10.5.0
public static function add_settings_group( $groups ) {
wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '9.9.0', '\Automattic\WooCommerce\Internal\Admin\Settings::add_settings_group' );
return Settings::get_instance()->add_settings_group( $groups );
}