register_post_meta()

为帖子注册一个元密钥。

register_post_meta(string $post_type,string $meta_key,array $args)

参数(Parameters)

参数类型必填说明
$post_type(string)必需要为其注册元密钥的Post类型。传递一个空字符串以在所有现有post类型中注册元键。
$meta_key(string)必需要注册的元密钥。
$args(array)必需用于在注册时描述元密钥的数据。有关受支持参数的列表,请参见register_meta()。

返回(Return)

(bool)如果元密钥注册成功,则为True;否则为false。

更新版本源码位置使用被使用
4.9.8wp-includes/post.php:217701 function
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索