WordPress at a glance
function is not described

get_post_to_edit() WP 2.0.0

Deprecated in 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.

  • See: get_post()

No Hooks.

Return

Object.

Usage

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

Code of get post to edit: wp-admin/includes/deprecated.php WP 5.2.2

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

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