readonly
- readonly is deprecated since version 5.9.0!
Alternative: wp_readonly()
readonly ( $readonly_value, $current = true, $display = true )
Parameters:- (mixed) readonly_value One of the values to compare.
- (mixed) current Optional. The other value to compare if not just true. Default true.
- (bool) display Optional. Whether to echo or just return the string. Default true.
See:Returns:- (string) HTML attribute or empty string.
Defined at: - Introduced in WordPress: 4.9.0
- Deprecated in WordPress: 5.9.0
Description
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.