readonly

SummerySummery

Outputs the html readonly attribute.

Syntax

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

DescriptionDescription

Compares the first two arguments and if identical marks as readonly

ParametersParameters

$readonly

(mixed) (Required) One of the values to compare

$current

(mixed) (Optional) (true) The other value to compare if not just true

Default value: true

$echo

(bool) (Optional) Whether to echo or just return the string

Default value: true

ReturnReturn

(string) html attribute or empty string

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
4.9.0 Introduced.
Scroll to Top