WP_Block_List::key
Returns the key of the current element of the block list.
Method of the class: WP_Block_List{}
No Hooks.
Returns
Int|null. Key of the current element.
Usage
$WP_Block_List = new WP_Block_List(); $WP_Block_List->key();
Changelog
| Since 5.5.0 | Introduced. |
WP_Block_List::key() WP Block List::key code WP 6.9.1
public function key() {
return key( $this->blocks );
}