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.
Method of the class: WP_Font_Library{}
No Hooks.
Returns
WP_Font_Library. The main instance.
Usage
$result = WP_Font_Library::get_instance();
Changelog
| Since 6.5.0 | Introduced. |
WP_Font_Library::get_instance() WP Font Library::get instance code WP 7.0
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}