disabled()

最后更新于:2021-11-26 01:49:19

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

Outputs the HTML disabled attribute.

参数

$disabled

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

$current

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

Default value: true

$echo

(bool) (Optional) Whether to echo or just return the string

Default value: true

响应

(string) HTML attribute or empty string

源文件

文件: gc-includes/general-template.php

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