WP_Block_List::count()
Returns the count of blocks in the list.
Метод класса: WP_Block_List{}
Хуков нет.
Возвращает
int
. Block count.
Использование
$WP_Block_List = new WP_Block_List(); $WP_Block_List->count();
Список изменений
С версии 5.5.0 | Введена. |
Код WP_Block_List::count() WP Block List::count WP 6.7.2
public function count() { return count( $this->blocks ); }