Automattic\WooCommerce\Admin\Features\ProductBlockEditor

BlockRegistry::get_instance()public staticWC 1.0

Get the singleton instance.

Метод класса: BlockRegistry{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = BlockRegistry::get_instance(): BlockRegistry;

Код BlockRegistry::get_instance() WC 9.4.2

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

	return self::$instance;
}