A WordPress-centric search engine for devs and theme authors



get_post_to_edit ›

Since2.0.0
Deprecated3.5.0
get_post_to_edit ( $id )
Parameters:
  • (int) $id
    Required: Yes
See:
Returns:
  • (object)
Defined at:
Codex:

Gets an existing post and format it for editing.



Source

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

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