首页 WordPress函数大全 get_post_custom()

get_post_custom()

2020-05-01 / 2923阅 / 悠然

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

get_post_custom( int $post_id )

Retrieve post meta fields, based>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

The post meta fields are retrieved from the cache where possible, so the function is optimized to be called more than>

参数

$post_id

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

返回

(array) Post meta for the given post.

大家谈论
    我的见解