WordPress at a glance

disabled() WP 1.0

Outputs the html disabled attribute.

Compares the first two arguments and if identical marks as disabled

No Hooks.


String. html attribute or empty string


disabled( $disabled, $current, $echo );
$disabled(mixed) (required)
One of the values to compare
(true) The other value to compare if not just true
Default: true
Whether to echo or just return the string
Default: true

Code of disabled: wp-includes/general-template.php VER 5.0.1

function disabled( $disabled, $current = true, $echo = true ) {
	return __checked_selected_helper( $disabled, $current, $echo, 'disabled' );

Related Functions

From tag: form functions

More from tag: Supporting (helper utility auxiliary)

No comments
    Hello, !     Log In . Register