Core Function
View Source on Trac ↗ get_post_to_edit()
get_post_to_edit( mixed $id ) Gets an existing post and format it for editing.
Parameters 1 required
| Name / Type | Description |
|---|---|
| int | $id Required |
Return Value
(WP_Post)
WP_Post
Function Information
Since Version
2.0.0
Source File
wp-admin/includes/deprecated.php
Advertisement