WordPress at Your Fingertips
function is not described

Walker_Page::end_el() public WP 2.1.0

Outputs the end of the current element in the tree.

{} It's a method of the class: Walker_Page{}

No Hooks.

Return

null. Nothing.

Usage

$Walker_Page = new Walker_Page();
$Walker_Page->end_el( $output, $page, $depth, $args );
$output(string) (required) (passed by reference — &)
Used to append additional content. Passed by reference.
$page(WP_Post) (required)
Page data object. Not used.
$depth(int)
Depth of page.
Default: 0 (unused)
$args(array)
Array of arguments.
Default: empty array

Notes

Changelog

Since 2.1.0 Introduced.

Code of Walker_Page::end_el() WP 5.8.2

public function end_el( &$output, $page, $depth = 0, $args = array() ) {
	if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) {
		$t = "\t";
		$n = "\n";
	} else {
		$t = '';
		$n = '';
	}
	$output .= "</li>{$n}";
}