WP_Font_Library::get_instance
Utility method to retrieve the main instance of the class.
The instance will be created if it does not exist yet.
Метод класса: WP_Font_Library{}
Хуков нет.
Возвращает
WP_Font_Library. The main instance.
Использование
$result = WP_Font_Library::get_instance();
Список изменений
| С версии 6.5.0 | Введена. |
Код WP_Font_Library::get_instance() WP Font Library::get instance WP 6.9.4
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}