首页 WordPress函数大全 get_post_custom_values()

get_post_custom_values()

2020-05-01 / 5475阅 / 悠然

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

get_post_custom_values( string $key = '', int $post_id )

Retrieve values for a custom post field.

描述

The parameters must not be considered optional. All of the post meta fields will be retrieved and>

参数

$key

(string)
(Optional)
Meta field key.

Default value: ''

$post_id

(int)
(Optional)
Post ID. Default is ID of the global $post.

返回

(array|null) Meta field values.

大家谈论
    我的见解