Automattic\WooCommerce\Admin\Features\ProductBlockEditor
BlockRegistry::get_instance
Get the singleton instance.
Method of the class: BlockRegistry{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = BlockRegistry::get_instance(): BlockRegistry;
BlockRegistry::get_instance() BlockRegistry::get instance code WC 10.9.1
public static function get_instance(): BlockRegistry {
if ( ! self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}