1. 首页
  2. WordPress 函数手册

post_custom()

post_custom( string $key =  )

检索自定义后元数据字段。
Retrieve post custom meta data field.

目录锚点:#参数#返回#源码


参数(Parameters)

参数 类型 必填 说明
$key (string) 可选 元数据密钥名称。

返回(Return)

(array|string|false)值数组,如果只有一个元素存在,则为单个值。如果密钥不存在,则为False。


源码(Source)


更新版本 源码位置 使用 被使用
1.5.0 wp-includes/post-template.php:1070 0 1 function

post_custom() 为WP2原创文章,链接:https://www.wp2.cn/functions/post_custom/