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

checked, delete_meta, is_feed, is_redirect, delete_metadata

Top Google Results

User discussions

wpseek mobile