wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_post_to_edit › WordPress Function

Depuis2.0.0
Dépréciée3.5.0
get_post_to_edit ( $id )
Paramètres:
  • (int) $id
    Requis: Oui
Voir:
Retourne:
  • (WP_Post)
Défini(e) dans:
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' );
}