readonly


readonly ( $readonly, $current = true, $echo = true )

Parameters:
  • (mixed) readonly One of the values to compare.
  • (mixed) current Optional. The other value to compare if not just true. Default true.
  • (bool) echo Optional. Whether to echo or just return the string. Default true.
See:
Returns:
  • (string) HTML attribute or empty string.
Defined at:

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.

Related Functions

wp_readonly, rel_canonical, random_int, add_role, get_taxonomy

Top Google Results

User discussions

wpseek mobile