checked


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

Parameters:
  • (mixed) checked One of the values to compare.
  • (mixed) current Optional. The other value to compare if not just true. Default true.
  • (bool) display Optional. Whether to echo or just return the string. Default true.
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

wp_checkdate, xfn_check, check_comment, fetch_feed, check_column

Top Google Results

User discussions

wpseek mobile