Walker_Page::end_el

Advertisement

Summery Summery

Outputs the end of the current element in the tree.

Syntax Syntax

Walker_Page::end_el( string $output, WP_Post $page, int $depth, array $args = array() )

Parameters Parameters

$output

(Required) Used to append additional content. Passed by reference.

$page

(Required) Page data object. Not used.

$depth

(Optional) Depth of page. Default 0 (unused).

$args

(Optional) Array of arguments.

Default value: array()

Source Source

File: wp-includes/class-walker-page.php

	 * @param array   $args   Optional. Array of arguments. Default empty array.
	 */
	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 = '';
		}

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

See also See also

Advertisement

Leave a Reply