Automattic\WooCommerce\Admin\BlockTemplates
BlockInterface::add_hide_condition
Add a hide condition to the block.
The hide condition is a JavaScript-like expression that will be evaluated on the client to determine if the block should be hidden. See @woocommerce/expression-evaluation for more details.
Метод класса: BlockInterface{}
Хуков нет.
Возвращает
Строку. The key of the hide condition, which can be used to remove the hide condition.
Использование
$BlockInterface = new BlockInterface(); $BlockInterface->add_hide_condition( $expression ): string;
- $expression(строка) (обязательный)
- An expression, which if true, will hide the block.
Код BlockInterface::add_hide_condition() BlockInterface::add hide condition WC 10.4.3
public function add_hide_condition( string $expression ): string;