Automattic\WooCommerce\Blocks\BlockTypes
ProductFilterTaxonomy::initialize
Initialize this block type.
- Hook into WP lifecycle.
- Register the block with WordPress.
Метод класса: ProductFilterTaxonomy{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->initialize();
Код ProductFilterTaxonomy::initialize() ProductFilterTaxonomy::initialize WC 11.2.2
protected function initialize() {
parent::initialize();
add_filter( 'woocommerce_blocks_product_filters_selected_items', array( $this, 'prepare_selected_filters' ), 10, 2 );
// Register REST field for menu_order on sortable taxonomies.
$this->register_taxonomy_menu_order_rest_field();
}