Automattic\WooCommerce\Internal\Admin\BlockTemplates
AbstractBlock::remove_hide_condition
Remove a hide condition from the block.
Method of the class: AbstractBlock{}
Hooks from the method
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() AbstractBlock::remove hide condition code WC 9.9.5
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 ); }