WPDev.one
Core Function
View Source on Trac ↗

get_postdata()

get_postdata( mixed $postid )

Retrieves all post data for a given post.

Parameters 1 required

Name / Type Description
$postid
int

Post ID.

Required

Return Value

(array)
Post data.

Function Information

Since Version
0.71
Source File
wp-includes/deprecated.php
Advertisement