检索自定义后元数据字段。
post_custom( string $key = ” )
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $key | (string) | 可选 | 元数据密钥名称。 |
返回(Return)
(array|string|false)值数组,如果只有一个元素存在,则为单个值。如果密钥不存在,则为False。
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 1.5.0 | wp-includes/post-template.php:1070 | 0 | 1 function |
检索自定义后元数据字段。
post_custom( string $key = ” )
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $key | (string) | 可选 | 元数据密钥名称。 |
(array|string|false)值数组,如果只有一个元素存在,则为单个值。如果密钥不存在,则为False。
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 1.5.0 | wp-includes/post-template.php:1070 | 0 | 1 function |