wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



checked › WordPress Function

Depuis1.0.0
Dépréciéen/a
checked ( $checked, $current = true, $display = true )
Paramètres: (3)
  • (mixed) $checked One of the values to compare.
    Requis: Oui
  • (mixed) $current Optional. The other value to compare if not just true. Default true.
    Requis: Non
    Défaut: true
  • (bool) $display Optional. Whether to echo or just return the string. Default true.
    Requis: Non
    Défaut: true
Retourne:
  • (string) HTML attribute or empty string.
Défini(e) dans:
Codex:

Outputs the HTML checked attribute.

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


Source

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