Walker::start_el()publicWP 2.1.0

Starts the element output.

The $args parameter holds additional values that may be used with the child class methods. Also includes the element output.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$Walker = new Walker();
$Walker->start_el( $output, $data_object, $depth, $args, $current_object_id );
$output(строка) (обязательный) (передается по ссылке — &)
Used to append additional content (passed by reference).
$data_object(объект) (обязательный)
The data object.
$depth(int)
Depth of the item.
$args(массив)
An array of additional arguments.
По умолчанию: array()
$current_object_id(int)
ID of the current item.

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

С версии 2.1.0 Введена.
С версии 5.9.0 Renamed $object (a PHP reserved keyword) to $data_object for PHP 8 named parameter support.

Код Walker::start_el() WP 6.5.2

public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) {}