readonly
readonly ( $readonly, $current = true, $echo = true )
Parameters:- (mixed) readonly One of the values to compare
- (mixed) current (true) The other value to compare if not just true
- (bool) echo Whether to echo or just return the string
Returns:- (string) HTML attribute or empty string
Defined at: - Introduced in WordPress: 4.9.0
- Deprecated in WordPress: —
Description
Outputs the HTML readonly attribute.Compares the first two arguments and if identical marks as readonly