Automattic\WooCommerce\Blocks\BlockTypes

ProductFilterStatus::initialize()protectedWC 1.0

Initialize this block type.

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

Method of the class: ProductFilterStatus{}

No Hooks.

Return

null. Nothing (null).

Usage

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

ProductFilterStatus::initialize() code WC 9.6.1

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

	add_filter( 'collection_filter_query_param_keys', array( $this, 'get_filter_query_param_keys' ), 10, 2 );
	add_filter( 'collection_active_filters_data', array( $this, 'register_active_filters_data' ), 10, 2 );
}