Automattic\WooCommerce\Admin\Features\ProductBlockEditor
BlockRegistry::init()
Initialize all blocks.
Метод класса: BlockRegistry{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$BlockRegistry = new BlockRegistry(); $BlockRegistry->init();
Код BlockRegistry::init() BlockRegistry::init WC 7.7.2
public function init() { add_filter( 'block_categories_all', array( $this, 'register_categories' ), 10, 2 ); $this->register_product_blocks(); }