WP_Block_List::offsetExists() WordPress Method
The WP_Block_List::offsetExists() method is used to check if a given key exists in the list of block objects. This is useful for checking if a particular block object exists before attempting to retrieve it.
WP_Block_List::offsetExists( $index ) #
Contents
Source
File: wp-includes/class-wp-block-list.php
public function offsetExists( $index ) { return isset( $this->blocks[ $index ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub