Automattic\WooCommerce\Internal\Admin\BlockTemplates

AbstractBlock::remove_hide_condition()publicWC 1.0

Remove a hide condition from the block.

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

Возвращает

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

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

$AbstractBlock = new AbstractBlock();
$AbstractBlock->remove_hide_condition( $key );
$key(строка) (обязательный)
The key of the hide condition to remove.

Код AbstractBlock::remove_hide_condition() WC 9.7.1

public function remove_hide_condition( string $key ) {
	unset( $this->hide_conditions[ $key ] );

	/**
	 * Action called after a hide condition is removed from a block.
	 *
	 * @param BlockInterface $block The block.
	 *
	 * @since 8.4.0
	 */
	do_action( 'woocommerce_block_template_after_remove_hide_condition', $this );
}