Automattic\WooCommerce\Blocks\BlockTypes

ProductSaleBadge::get_block_type_uses_context │ protected │ WC 1.0

Register the context.

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

Хуков нет.

Возвращает

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

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

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

Код ProductSaleBadge::get_block_type_uses_context() WC 11.3.0

protected function get_block_type_uses_context() {
	return array( 'query', 'queryId', 'postId' );
}