get_post_to_edit
Gets an existing post and format it for editing.
Description
(object) get_post_to_edit( (int) $id );
Returns (object)
Parameters (1)
- 0. $id (int)
- The id.
Usage
if ( !function_exists( 'get_post_to_edit' ) ) { require_once ABSPATH . '/wp-admin/includes/deprecated.php'; } // The id. $id = -1; // NOTICE! Understand what this does before running. $result = get_post_to_edit($id);
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/deprecated.php
- function get_post_to_edit( $id ) {
- _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' );
- }