WPSEO_Options::get_instance │ public static │ Yoast 1.0

Get the singleton instance of this class.

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

Хуков нет.

Возвращает

object.

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

$result = WPSEO_Options::get_instance();

Код WPSEO_Options::get_instance() Yoast 28.9

public static function get_instance() {
	if ( ! ( static::$instance instanceof self ) ) {
		static::$instance = new self();
	}

	return static::$instance;
}