Automattic\WooCommerce\Internal\Admin\BlockTemplates
AbstractBlockTemplate::uncache_block()
Uncaches a block in the template. This is an internal method and should not be called directly except for from the BlockContainerTrait's remove_block() method.
Метод класса: AbstractBlockTemplate{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$AbstractBlockTemplate = new AbstractBlockTemplate(); $AbstractBlockTemplate->uncache_block( $block_id );
- $block_id(строка) (обязательный)
- The block ID.
Код AbstractBlockTemplate::uncache_block() AbstractBlockTemplate::uncache block WC 9.6.0
public function uncache_block( string $block_id ) { if ( isset( $this->block_cache[ $block_id ] ) ) { unset( $this->block_cache[ $block_id ] ); } }