Warning: This function has been deprecated. Use get_default_post_to_edit() instead.

get_default_page_to_edit() WordPress Function

The get_default_page_to_edit() function is used to get the default page to edit when creating a new post. This function is used when the default post type is set to page.

get_default_page_to_edit() #

Gets the default page information to use.


Description

Top ↑

See also


Top ↑

Return

(WP_Post) Post object containing all the default post data as attributes


Top ↑

Source

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


Top ↑

Changelog

Changelog
VersionDescription
3.5.0Use get_default_post_to_edit()
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More