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



disabled › WordPress Function

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

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


Sorgenti

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