Summery Summery
Returns true if a block exists by the specified block index, or false otherwise.
Syntax Syntax
Parameters Parameters
- $index
-
(Required) Index of block to check.
Return Return
(bool) Whether block exists.
Source Source
File: wp-includes/class-wp-block-list.php
public function offsetExists( $index ) { return isset( $this->blocks[ $index ] ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |