Walker_Nav_Menu_Checklist::end_lvl()
Ends the list of after the elements are added.
Method of the class: Walker_Nav_Menu_Checklist{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Walker_Nav_Menu_Checklist = new Walker_Nav_Menu_Checklist(); $Walker_Nav_Menu_Checklist->end_lvl( $output, $depth, $args );
- $output(string) (required) (passed by reference — &)
- Used to append additional content (passed by reference).
- $depth(int)
- Depth of page. Used for padding.
- $args(stdClass)
- Not used.
Default: null
Notes
Changelog
Since 3.0.0 | Introduced. |
Walker_Nav_Menu_Checklist::end_lvl() Walker Nav Menu Checklist::end lvl code WP 6.6.2
public function end_lvl( &$output, $depth = 0, $args = null ) { $indent = str_repeat( "\t", $depth ); $output .= "\n$indent</ul>"; }