WordPress at Your Fingertips
function is not described

get_post_to_edit() WP 2.0.0

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. Use get_post() instead.

Gets an existing post and format it for editing.

No Hooks.

Return

WP_Post.

Usage

get_post_to_edit( $id );
$id(int) (required)
-

Notes

Changelog

Since 2.0.0 Introduced.
Deprecated Since 3.5.0 Use get_post()

Code of get_post_to_edit() WP 5.8.2

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

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