WP_Block_Styles_Registry::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_Block_Styles_Registry{}
No Hooks.
Returns
WP_Block_Styles_Registry. The main instance.
Usage
$result = WP_Block_Styles_Registry::get_instance();
Changelog
| Since 5.3.0 | Introduced. |
WP_Block_Styles_Registry::get_instance() WP Block Styles Registry::get instance code WP 6.9.1
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}