Automattic\WooCommerce\Blocks\BlockTypes

ProductFilterPrice::initializeprotectedWC 1.0

Initialize this block type.

  • Hook into WP lifecycle.
  • Register the block with WordPress.

Method of the class: ProductFilterPrice{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->initialize();

ProductFilterPrice::initialize() code WC 10.3.6

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

	add_filter( 'woocommerce_blocks_product_filters_selected_items', array( $this, 'prepare_selected_filters' ), 10, 2 );
}