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:

Description

Outputs the html readonly attribute.

Compares the first two arguments and if identical marks as readonly

Related Functions

rel_canonical, random_int, random_bytes, get_taxonomy, add_role

Top Google Results

User discussions

wpseek mobile