wp_readonly


wp_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.
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

readonly, wp_cron, wp_head, wp_rand, _wp_cron

Top Google Results

User discussions

wpseek mobile