readonly

Advertisement

Summery Summery

Outputs the html readonly attribute.

Syntax Syntax

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

Description Description

Compares the first two arguments and if identical marks as readonly

Parameters Parameters

$readonly

(Required) One of the values to compare

$current

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

Default value: true

$echo

(Optional) Whether to echo or just return the string

Default value: true

Return Return

(string) html attribute or empty string

Source Source

File: wp-includes/general-template.php

 * {@see 'get_the_generator_$type'} filter.
 *
 * @since 2.5.0

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.

Advertisement

Leave a Reply