get_post_to_edit() – Gets an existing post and format it for editing.

You appear to be a bot. Output may be restricted

Description

Gets an existing post and format it for editing.

Usage

$WP_Post = get_post_to_edit( $id );

Parameters

$id
( int ) required

Returns

WP_Post

Source

File name: wordpress/wp-admin/includes/deprecated.php
Lines:

1 to 5 of 5
function get_post_to_edit( $id ) {
  _deprecated_function( get_post_to_edit, '3.5.0', 'get_post()' );

  return get_post( $id, OBJECT, 'edit' );
}
 

 View on GitHub View on Trac