首页 WordPress函数大全 is_wp_error()

is_wp_error()

2020-05-02 / 5018阅 / 悠然

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

is_wp_error( mixed $thing )

检查变量是否为WordPress错误。

描述

如果$ thing是WP_Error类的对象,则返回true。

参数

$thing

(mixed)
(Required)
Check if unknown variable is a WP_Error object.

返回

(bool) True, if WP_Error. False, if not WP_Error.

大家谈论
    我的见解