WP_Block_List::current │ public │ WP 5.5.0 │ ReturnTypeWillChange

Returns the current element of the block list.

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

Хуков нет.

Возвращает

WP_Block|null. Current element.

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

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

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

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

Код WP_Block_List::current() WP 7.1.4

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