函数原型
get_default_page_to_edit(): WP_Post
函数描述
Gets the default page information to use.
是否弃用
Warning: This function has been deprecated. Use get_default_post_to_edit() instead.
函数参数
无
函数返回值
WP_Post Post object containing all the default post data as attributes
函数位置
File: wp-admin/includes/deprecated.php.
函数源码
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;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.5.0 | Use get_default_post_to_edit() |
| 2.5.0 | Introduced. |

