Yoast_Integration_Toggles::instance()
Gets the main integration toggles manager instance used.
This essentially works like a Singleton, but for its drawbacks does not restrict instantiation otherwise.
Метод класса: Yoast_Integration_Toggles{}
Хуков нет.
Возвращает
self
. Main instance.
Использование
$result = Yoast_Integration_Toggles::instance();
Код Yoast_Integration_Toggles::instance() Yoast Integration Toggles::instance Yoast 23.5
public static function instance() { if ( self::$instance === null ) { self::$instance = new self(); } return self::$instance; }