Automattic\WooCommerce\Blocks\BlockTypes
ProductStockIndicator::get_block_type_uses_context()
Register the context.
Метод класса: ProductStockIndicator{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_block_type_uses_context();
Код ProductStockIndicator::get_block_type_uses_context() ProductStockIndicator::get block type uses context WC 8.7.0
protected function get_block_type_uses_context() { return [ 'query', 'queryId', 'postId' ]; }