Automattic\WooCommerce\Internal\RestApi\Routes\V4\Settings\General
Controller::get_settings_general_instance
Get the WC_Settings_General instance.
Method of the class: Controller{}
No Hooks.
Returns
WC_Settings_General.
Usage
// private - for code of main (parent) class only $result = $this->get_settings_general_instance();
Controller::get_settings_general_instance() Controller::get settings general instance code WC 10.4.3
private function get_settings_general_instance() {
if ( is_null( $this->settings_general_instance ) ) {
$this->settings_general_instance = new WC_Settings_General();
}
return $this->settings_general_instance;
}