首页 WordPress函数大全 is_protected_meta()

is_protected_meta()

2020-05-02 / 5656阅 / 悠然

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

is_protected_meta( string $meta_key, string $meta_type = '' )

确定是否将元密钥视为受保护的。

描述

参数

$meta_key

(string)
(Required)
Metadata key.

$meta_type

(string)
(Optional)
Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

Default value: ''

返回

(bool) Whether the meta key is considered protected.

大家谈论
    我的见解