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



get_default_page_to_edit › WordPress Function

Since2.5.0
已弃用3.5.0
get_default_page_to_edit ( 没有参数 )
查看:
返回:
  • (WP_Post) Post object containing all the default post data as attributes
定义在:
文档:

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;
}