Walker_Page::end_el()
最后更新于:2021-11-26 07:04:22
Walker_Page::end_el( string$output, GC_Post$page, int$depth, array$args=array())Outputs the end of the current element in the tree.
参数
- $output
-
(string) (Required) Used to append additional content. Passed by reference.
- $page
-
(GC_Post) (Required) Page data object. Not used.
- $depth
-
(int) (Optional) Depth of page. Default 0 (unused).
- $args
-
(array) (Optional) Array of arguments.
Default value: array()
源文件
文件: gc-includes/class-walker-page.php
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}";
}