WordPress开发者和主题制作者的搜索引擎



get_post_to_edit ›

Since2.0.0
已弃用3.5.0
get_post_to_edit ( $id )
参数:
  • (int) $id
    Required: Yes
查看:
返回:
  • (object)
定义在:
文档:

Gets an existing post and format it for editing.



源码

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

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