get_default_page_to_edit

函数


get_default_page_to_edit ( No parameters )
返回值
  • (WP_Post) Post object containing all the default post data as attributes
相关
  • get_default_post_to_edit()
定义位置
  • wp-admin/includes/deprecated.php
    , line 1110
引入
2.5.0
弃用
3.5.0

Gets the default page information to use.

function get_default_page_to_edit() {
	_deprecated_function( __FUNCTION__, '3.5.0', "get_default_post_to_edit( 'page' )" );

	$page = get_default_post_to_edit();
	$page->post_type = 'page';
	return $page;
}