Automattic\WooCommerce\Admin\Features\ProductBlockEditor
BlockRegistry::get_instance
Get the singleton instance.
Метод класса: BlockRegistry{}
Хуков нет.
Возвращает
BlockRegistry.
Использование
$result = BlockRegistry::get_instance(): BlockRegistry;
Код BlockRegistry::get_instance() BlockRegistry::get instance WC 11.2.2
public static function get_instance(): BlockRegistry {
$instance = self::$instance;
if ( null === $instance ) {
$instance = new self();
self::$instance = $instance;
}
self::maybe_log_removal_warning();
return $instance;
}