WC_Register_WP_Admin_Settings::__construct │ public │ WC 3.0.0

Hooks into the settings API and starts registering our settings.

Метод класса: WC_Register_WP_Admin_Settings{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$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) (обязательный)
The object that contains the settings to register.
$type(строка) (обязательный)
Type of settings to register (email or page).

Список изменений

С версии 3.0.0 Введена.

Код WC_Register_WP_Admin_Settings::__construct() WC 11.3.0

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

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

	$this->register();
}