WP_Block_List::offsetExists
Returns true if a block exists by the specified block offset, or false otherwise.
Method of the class: WP_Block_List{}
No Hooks.
Returns
true|false. Whether block exists.
Usage
$WP_Block_List = new WP_Block_List(); $WP_Block_List->offsetExists( $offset );
- $offset(int) (required)
- Offset of block to check for.
Changelog
| Since 5.5.0 | Introduced. |
WP_Block_List::offsetExists() WP Block List::offsetExists code WP 6.9.1
public function offsetExists( $offset ) {
return isset( $this->blocks[ $offset ] );
}