WP_Block_Styles_Registry::get_instance()

Utility method to retrieve the main instance of the class.


Description Description

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


Return Return

(WP_Block_Styles_Registry) The main instance.


Top ↑

Source Source

File: wp-includes/class-wp-block-styles-registry.php

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

		return self::$instance;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.