Un motore di ricerca WordPress per sviluppatori e autori di temi



checked ›

Da1.0.0
Deprecaton/a
checked ( $checked, $current = true, $echo = true )
Parametri: (3)
  • (mixed) $checked One of the values to compare
    Richiesto:
  • (mixed) $current (true) The other value to compare if not just true
    Richiesto: No
    Default: true
  • (bool) $echo Whether to echo or just return the string
    Richiesto: No
    Default: true
Ritorna:
  • (string) html attribute or empty string
Definito a:
Codex:

Outputs the html checked attribute.

Compares the first two arguments and if identical marks as checked



Sorgenti

function checked( $checked, $current = true, $echo = true ) {
	return __checked_selected_helper( $checked, $current, $echo, 'checked' );
}