Uses
Uses | Description |
---|---|
wp-includes/general-template.php: __checked_selected_helper() | Private helper function for checked, selected, disabled and readonly. |
Outputs the HTML disabled attribute.
Compares the first two arguments and if identical marks as disabled
(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
(string) HTML attribute or empty string
File: wp-includes/general-template.php
function disabled( $disabled, $current = true, $echo = true ) { return __checked_selected_helper( $disabled, $current, $echo, 'disabled' ); }
Version | Description |
---|---|
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/disabled