Walker_Page::end_lvl() – Outputs the end of the current level in the tree after elements are output.
You appear to be a bot. Output may be restricted
Description
Outputs the end of the current level in the tree after elements are output.
Usage
Walker_Page::end_lvl( $output, $depth, $args );
Parameters
- $output
- ( string ) required – Used to append additional content (passed by reference).
- $depth
- ( int ) optional – Optional. Depth of page. Used for padding. Default 0.
- $args
- ( array ) optional – Optional. Arguments for outputting the end of the current level. Default empty array.
Returns
void
Source
File name: wordpress/wp-includes/class-walker-page.php
Lines:
1 to 11 of 11
public function end_lvl( &$output, $depth = 0, $args = array() ) { if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { $t = "\t"; $n = "\n"; } else { $t = ''; $n = ''; } $indent = str_repeat( $t, $depth ); $output .= "{$indent}</ul>{$n}"; }