wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



checked › WordPress Function

Da1.0.0
Deprecaton/a
checked ( $checked, $current = true, $display = true )
Parametri: (3)
  • (mixed) $checked One of the values to compare.
    Richiesto:
  • (mixed) $current Optional. The other value to compare if not just true. Default true.
    Richiesto: No
    Default: true
  • (bool) $display Optional. Whether to echo or just return the string. Default true.
    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, $display = true ) {
	return __checked_selected_helper( $checked, $current, $display, 'checked' );
}