Automattic\WooCommerce\Blocks\BlockTypes

CategoryDescription::get_block_type_uses_contextprotectedWC 1.0

Register the context used by this block.

Method of the class: CategoryDescription{}

No Hooks.

Returns

Array.

Usage

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

CategoryDescription::get_block_type_uses_context() code WC 10.5.0

protected function get_block_type_uses_context() {
	return [ 'termId', 'termTaxonomy' ];
}