WP_Icon_Collections_Registry::get_instance │ public static │ WP 7.1.0

Utility method to retrieve the main instance of the class.

The instance will be created if it does not exist yet.

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

Хуков нет.

Возвращает

WP_Icon_Collections_Registry. The main instance.

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

$result = WP_Icon_Collections_Registry::get_instance();

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

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

Код WP_Icon_Collections_Registry::get_instance() WP 7.1.2

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

	return self::$instance;
}