Un motore di ricerca WordPress per sviluppatori e autori di temi



readonly ›

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

Compares the first two arguments and if identical marks as readonly



Sorgenti

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