WC_Register_WP_Admin_Settings::__construct │ public │ WC 3.0.0

Hooks into the settings API and starts registering our settings.

Method of the class: WC_Register_WP_Admin_Settings{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Register_WP_Admin_Settings = new WC_Register_WP_Admin_Settings();
$WC_Register_WP_Admin_Settings->__construct( $object, $type );
$object(WC_Email|WC_Settings_Page) (required)
The object that contains the settings to register.
$type(string) (required)
Type of settings to register (email or page).

Changelog

Since 3.0.0 Introduced.

WC_Register_WP_Admin_Settings::__construct() code WC 11.2.1

public function __construct( $object, $type ) {
	if ( ! is_object( $object ) ) {
		return;
	}

	$this->object = $object;
	$this->type   = $type;

	$this->register();
}