Walker_CategoryDropdown::start_el

SummerySummery

Starts the element output.

Syntax

Walker_CategoryDropdown::start_el( string $output, object $category, int $depth, array $args = array(), int $id )

ParametersParameters

$output

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

$category

(object) (Required) Category data object.

$depth

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

$args

(array) (Optional) Uses 'selected', 'show_count', and 'value_field' keys, if they exist. See wp_dropdown_categories().

Default value: array()

$id

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

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.

See alsoSee also

Scroll to Top