Walker::end_el()
Ends the element output, if needed.
The $args parameter holds additional values that may be used with the child class methods.
Method of the class: Walker{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Walker = new Walker(); $Walker->end_el( $output, $data_object, $depth, $args );
- $output(string) (required) (passed by reference — &)
- Used to append additional content (passed by reference).
- $data_object(object) (required)
- The data object.
- $depth(int)
- Depth of the item.
- $args(array)
- An array of additional arguments.
Default: array()
Changelog
Since 2.1.0 | Introduced. |
Since 5.9.0 | Renamed $object (a PHP reserved keyword) to $data_object for PHP 8 named parameter support. |
Walker::end_el() Walker::end el code WP 6.7.2
public function end_el( &$output, $data_object, $depth = 0, $args = array() ) {}