Walker_Category::end_el()

最后更新于:2021-11-26 05:42:22

Walker_Category::end_el( string$output, object$page, int$depth, array$args=array())

Ends the element output, if needed.

参数

$output

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

$page

(object) (Required) Not used.

$depth

(int) (Optional) Depth of category. Not used.

$args

(array) (Optional) An array of arguments. Only uses ‘list’ for whether should append to output. See gc_list_categories().

Default value: array()

源文件

文件: gc-includes/class-walker-category.php

	public function end_el( &$output, $page, $depth = 0, $args = array() ) {
		if ( 'list' !== $args['style'] ) {
			return;
		}

		$output .= "</li>n";
	}