WP_Block_Pattern_Categories_Registry::get_instance

Advertisement

Summery Summery

Utility method to retrieve the main instance of the class.

Syntax Syntax

WP_Block_Pattern_Categories_Registry::get_instance()

Description Description

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

Return Return

(WP_Block_Pattern_Categories_Registry) The main instance.

Source Source

File: wp-includes/class-wp-block-pattern-categories-registry.php

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

		return self::$instance;
	}

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Advertisement

Leave a Reply