GC_Block_List::offsetExists()

最后更新于:2021-11-26 09:54:28

GC_Block_List::offsetExists( string$index)

响应s true if a block exists by the specified block index, or false otherwise.

参数

$index

(string) (Required) Index of block to check.

响应

(bool) Whether block exists.

源文件

文件: gc-includes/class-gc-block-list.php

	public function offsetExists( $index ) {
		return isset( $this->blocks[ $index ] );
	}