disabled() – Outputs the HTML disabled attribute.

You appear to be a bot. Output may be restricted

Description

Outputs the HTML disabled attribute.

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

Usage

$string = disabled( $disabled, $current, $display );

Parameters

$disabled
( mixed ) required – One of the values to compare.
$current
( mixed ) optional default: 1 – Optional. The other value to compare if not just true. Default true.
$display
( bool ) optional default: 1 – Optional. Whether to echo or just return the string. Default true.

Returns

string HTML attribute or empty string.

Source

File name: wordpress/wp-includes/general-template.php


Lines:

1 to 4 of 4
function disabled( $disabled, $current = true, $display = true ) {
  return __checked_selected_helper( $disabled, $current, $display, 'disabled' );
}
 

 View on GitHub View on Trac