Walker::start_el( string $output, object $data_object, int $depth, array $args = array(), int $current_object_id )
Starts the element output.
Description
The $args parameter holds additional values that may be used with the child class methods. Also includes the element output.
Parameters
- $output
-
(Required) Used to append additional content (passed by reference).
- $data_object
-
(Required) The data object.
- $depth
-
(Required) Depth of the item.
- $args
-
(Optional) An array of additional arguments.
Default value: array()
- $current_object_id
-
(Optional) ID of the current item. Default 0.
Source
File: wp-includes/class-wp-walker.php
public function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {}
Changelog
Version | Description |
---|---|
5.9.0 | Renamed $object (a PHP reserved keyword) to $data_object for PHP 8 named parameter support. |
2.1.0 | Introduced. |