selected


selected ( $selected, $current = true, $echo = true )

Parameters:
  • (mixed) $selected One of the values to compare
  • (mixed) $current (true) The other value to compare if not just true
  • (bool) $echo Whether to echo or just return the string
Returns:
  • (string) html attribute or empty string
Defined at:

Description

Outputs the html selected attribute.

Compares the first two arguments and if identical marks as selected

Related Functions

is_redirect, is_feed, delete_meta, checked, delete_metadata

Top Google Results

User discussions

wpseek mobile