Automattic\WooCommerce\Internal\Admin\BlockTemplates
AbstractBlock::remove_hide_condition
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() AbstractBlock::remove hide condition WC 10.7.0
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 );
}