wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



checked › WordPress Function

Od1.0.0
Przestarzałyn/a
› checked ( $checked, $current = true, $display = true )
Parametry: (3)
  • (mixed) $checked One of the values to compare.
    Wymagane: Tak
  • (mixed) $current Optional. The other value to compare if not just true. Default true.
    Wymagane: Nie
    Domyślny: true
  • (bool) $display Optional. Whether to echo or just return the string. Default true.
    Wymagane: Nie
    Domyślny: true
Powrót:
  • (string) HTML attribute or empty string.
Zdefiniowane na:
Codex:

Outputs the HTML checked attribute.

Compares the first two arguments and if identical marks as checked.


Źródło

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