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



selected › WordPress Function

Da1.0.0
Deprecaton/a
selected ( $selected, $current = true, $display = true )
Parametri: (3)
  • (mixed) $selected 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 selected attribute.

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


Sorgenti

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