WP_Block_List::key()publicWP 5.5.0ReturnTypeWillChange

Returns the key of the current element of the block list.

Метод класса: WP_Block_List{}

Хуков нет.

Возвращает

Разное. Key of the current element.

Использование

$WP_Block_List = new WP_Block_List();
$WP_Block_List->key();

Список изменений

С версии 5.5.0 Введена.

Код WP_Block_List::key() WP 6.4.3

public function key() {
	return key( $this->blocks );
}