WP_Block_Styles_Registry::get_instance(): WP_Block_Styles_Registry
Utility method to retrieve the main instance of the class.
Description
The instance will be created if it does not exist yet.
Return
WP_Block_Styles_Registry The main instance.
Source
File: wp-includes/class-wp-block-styles-registry.php
.
View all references
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |