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



disabled › WordPress Function

Depuis3.0.0
Dépréciéen/a
disabled ( $disabled, $current = true, $display = true )
Paramètres: (3)
  • (mixed) $disabled 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 disabled attribute.

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


Source

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