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