Automattic\WooCommerce\Blocks\BlockTypes

SavedForLater::initializeprotectedWC 1.0

Initialize this block type.

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

Хуков нет.

Возвращает

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

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->initialize(): void;

Код SavedForLater::initialize() WC 11.0.1

protected function initialize(): void {
	parent::initialize();

	// We do not use `BlockHooksTrait` currently as it has issues with PHPStan.
	add_filter( 'hooked_block_types', array( $this, 'register_hooked_block' ), 9, 4 );
	add_filter( 'hooked_block_woocommerce/saved-for-later', array( $this, 'set_hooked_block_attributes' ), 10, 4 );
}