Summery Summery

Outputs the html disabled attribute.

Syntax Syntax

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

Description Description

Compares the first two arguments and if identical marks as disabled

Parameters Parameters


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


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

Default value: true


(bool) (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

	 * Filters the output of the XHTML generator tag for display.
	 * @since 2.5.0


Changelog Changelog

Version Description
3.0.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.