Core Function
View Source on Trac ↗ generate_postdata()
generate_postdata( mixed $post ) Generates post data.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (WP_Post | | object | int) $post WP_Post instance or Post ID/object. Required |
Return Value
((array)
| false) Elements of post, or false on failure.
Function Information
Since Version
5.2.0
Source File
wp-includes/query.php
Advertisement