WPDev.one

disabled()

disabled( mixed $disabled, mixed $current = true, mixed $display = true )

Outputs the HTML disabled attribute.

Parameters 3 required

Name / Type Description
$disabled
mixed

One of the values to compare.

Required
mixed

$current Optional. The other value to compare if not just true. Default true.

Required
bool

$display Optional. Whether to echo or just return the string. Default true.

Required

Return Value

(string)
HTML attribute or empty string.

Function Information

Since Version
3.0.0
Source File
wp-includes/general-template.php
Advertisement