WordPress at a glance
функция не описана

WP_Block_Pattern_Categories_Registry::get_instance() public WP 5.5.0

Utility method to retrieve the main instance of the class.

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

It's a method of the class: WP_Block_Pattern_Categories_Registry{}

Хуков нет.


WP_Block_Pattern_Categories_Registry. The main instance.


$result = WP_Block_Pattern_Categories_Registry::get_instance();


Since 5.5.0 Introduced.

Код WP_Block_Pattern_Categories_Registry::get_instance() WP 5.5.1

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

	return self::$instance;