EDD_HTML_Elements::year_dropdown( string $name = 'year', int $selected, int $years_before = 5, int $years_after )

Renders an HTML Dropdown of years


Description Description


Parameters Parameters

$name

(Optional) Name attribute of the dropdown

Default value: 'year'

$selected

(Required) Year to select automatically

$years_before

(Optional) Number of years before the current year the dropdown should start with

Default value: 5

$years_after

(Required) Number of years after the current year the dropdown should finish at


Top ↑

Return Return

(string) $output Year dropdown


Top ↑

Source Source

File: includes/class-edd-html-elements.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.