checked


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

Parameters:
  • (mixed) $checked 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 checked attribute.

Compares the first two arguments and if identical marks as checked

Related Functions

xfn_check, wp_checkdate, check_comment, fetch_feed, check_column

Top Google Results

User discussions

wpseek mobile