wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



readonly › WordPress Function

Od4.9.0
Przestarzały5.9.0
readonly ( $readonly_value, $current = true, $display = true )
Parametry: (3)
  • (mixed) $readonly_value One of the values to compare.
    Wymagane: Tak
  • (mixed) $current Optional. The other value to compare if not just true. Default true.
    Wymagane: Nie
    Domyślny: true
  • (bool) $display Optional. Whether to echo or just return the string. Default true.
    Wymagane: Nie
    Domyślny: true
Zobacz:
Powrót:
  • (string) HTML attribute or empty string.
Zdefiniowane na:
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.


Źródło

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