get_postdata()
get_postdata( int $postid )
检索给定文章的所有文章数据。
Retrieves all post data for a given post.
说明(Description)
另见函数 get_post()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$postid | (int) | 必需 | 邮政编码。 |
返回(Return)
(array)Post数据。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
1.5.1 | wp-includes/deprecated.php:25 | 0 | 2 |
get_postdata() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_postdata/