Uma área de pesquisa sobre o WordPress para devs e autores do tema



disabled ›

Desde3.0.0
Obsoleton/a
disabled ( $disabled, $current = true, $echo = true )
Parâmetros: (3)
  • (mixed) $disabled One of the values to compare
    Required: Yes
  • (mixed) $current (true) The other value to compare if not just true
    Required: No
    Padrão: true
  • (bool) $echo Whether to echo or just return the string
    Required: No
    Padrão: true
Retorna:
  • (string) html attribute or empty string
Definido em:
Codex:

Outputs the html disabled attribute.

Compares the first two arguments and if identical marks as disabled



Fonte

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