get_post_to_edit

Advertisement

Deprecated Deprecated

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

Summery Summery

Gets an existing post and format it for editing.

Syntax Syntax

get_post_to_edit( int $id )

Parameters Parameters

$id

(int) (Required)

Return Return

(object)

Source Source

File: wp-admin/includes/deprecated.php

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Use get_post()
2.0.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.