rest_is_boolean()

确定给定值是否与布尔值类似。

rest_is_boolean( bool|string $maybe_bool )

参数(Parameters)

参数类型必填说明
$maybe_bool(bool | string)必需正在评估的值。

返回(Return)

(bool)如果是布尔值,则为True,否则为false。

更新版本源码位置使用被使用
4.7.0wp-includes/rest-api.php:11401 function0
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索