Un motore di ricerca WordPress per sviluppatori e autori di temi



disabled ›

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

Compares the first two arguments and if identical marks as disabled



Sorgenti

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