Walker_Nav_Menu_Checklist::start_lvl()

最后更新于:2021-11-26 06:49:22

Walker_Nav_Menu_Checklist::start_lvl( string$output, int$depth, stdClass$args=null)

Starts the list before the elements are added.

参数

$output

(string) (Required) Used to append additional content (passed by reference).

$depth

(int) (Required) Depth of page. Used for padding.

$args

(stdClass) (Optional) Not used.

Default value: null

源文件

文件: gc-admin/includes/class-walker-nav-menu-checklist.php

	public function start_lvl( &$output, $depth = 0, $args = null ) {
		$indent  = str_repeat( "t", $depth );
		$output .= "n$indent<ul class='children'>n";
	}