wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



readonly › WordPress Function

Seit4.9.0
Veraltet5.9.0
readonly ( $readonly_value, $current = true, $display = true )
Parameter: (3)
  • (mixed) $readonly_value One of the values to compare.
    Erforderlich: Ja
  • (mixed) $current Optional. The other value to compare if not just true. Default true.
    Erforderlich: Nein
    Standard: true
  • (bool) $display Optional. Whether to echo or just return the string. Default true.
    Erforderlich: Nein
    Standard: true
Siehe:
Gibt zurück:
  • (string) HTML attribute or empty string.
Definiert in:
Codex:

Outputs the HTML readonly attribute.

Compares the first two arguments and if identical marks as readonly. This function is deprecated, and cannot be used on PHP >= 8.1.


Quellcode

function readonly( $readonly_value, $current = true, $display = true ) {
	_deprecated_function( __FUNCTION__, '5.9.0', 'wp_readonly()' );
	return wp_readonly( $readonly_value, $current, $display );
}