wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_readonly › WordPress Function

Since5.9.0
Deprecatedn/a
wp_readonly ( $readonly, $current = true, $echo = true )
Parameters: (3)
  • (mixed) $readonly One of the values to compare.
    Required: Yes
  • (mixed) $current Optional. The other value to compare if not just true. Default true.
    Required: No
    Default: true
  • (bool) $echo Optional. Whether to echo or just return the string. Default true.
    Required: No
    Default: true
Returns:
  • (string) HTML attribute or empty string.
Defined at:
Codex:

Outputs the HTML readonly attribute.

Compares the first two arguments and if identical marks as readonly.


Related Functions: readonly, wp_cron, wp_rand, wp_head, _wp_cron

Source

function wp_readonly( $readonly, $current = true, $echo = true ) {
	return __checked_selected_helper( $readonly, $current, $echo, 'readonly' );
}