Walker_PageDropdown::start_el

SummerySummery

Starts the element output.

Syntax

Walker_PageDropdown::start_el( string $output, WP_Post $page, int $depth, array $args = array(), int $id )

ParametersParameters

$output

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

$page

(WP_Post) (Required) Page data object.

$depth

(int) (Optional) Depth of page in reference to parent pages. Used for padding. Default 0.

$args

(array) (Optional) Uses 'selected' argument for selected page to set selected HTML attribute for option element. Uses 'value_field' argument to fill "value" attribute. See wp_dropdown_pages().

Default value: array()

$id

(int) (Optional) ID of the current page. Default 0 (unused).

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.

See alsoSee also

Scroll to Top