WP_Block_Pattern_Categories_Registry::get_instance()public staticWP 5.5.0

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_Pattern_Categories_Registry{}

No Hooks.

Return

WP_Block_Pattern_Categories_Registry. The main instance.

Usage

$result = WP_Block_Pattern_Categories_Registry::get_instance();

Changelog

Since 5.5.0 Introduced.

WP_Block_Pattern_Categories_Registry::get_instance() code WP 6.4.3

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

	return self::$instance;
}