Automattic\WooCommerce\Internal\Admin\BlockTemplates

AbstractBlock::remove_hide_conditionpublicWC 1.0

Remove a hide condition from the block.

Method of the class: AbstractBlock{}

No Hooks.

Returns

null. Nothing (null).

Usage

$AbstractBlock = new AbstractBlock();
$AbstractBlock->remove_hide_condition( $key );
$key(string) (required)
The key of the hide condition to remove.

AbstractBlock::remove_hide_condition() code WC 10.9.3

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
	 * @deprecated 10.9.0 This hook will be removed in WooCommerce 11.0.
	 */
	wc_do_deprecated_action(
		'woocommerce_block_template_after_remove_hide_condition',
		array( $this ),
		'10.9.0',
		null,
		'This block template hook will be removed in WooCommerce 11.0.'
	);
}