首页 WordPress函数大全 disabled()

disabled()

2020-05-01 / 2528阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

Outputs the html disabled attribute.

描述

Compares the first two arguments and if identical marks as disabled

参数

$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

大家谈论
    我的见解