This function has been deprecated. Use get_post() instead.

get_post_to_edit( int $id )

Gets an existing post and format it for editing.


Description

See also


Parameters

$id

(Required)


Return

(object)


Source

File: wp-admin/includes/deprecated.php

function get_post_to_edit( $id ) {
	_deprecated_function( __FUNCTION__, 'WP-3.5.0', 'get_post()' );

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


Changelog

Changelog
Version Description
WP-3.5.0 Use get_post()
WP-2.0.0 Introduced. This function has been deprecated. Use get_post() instead.