首页 WordPress函数大全 get_post_custom_keys()

get_post_custom_keys()

2020-05-01 / 1917阅 / 悠然

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

get_post_custom_keys( int $post_id )

Retrieve meta field names for a post.

描述

If there are no meta fields, then nothing (null) will be returned.

参数

$post_id

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

返回

(array|void) Array of the keys, if retrieved.

大家谈论
    我的见解