get_default_page_to_edit(): WP_Post

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

Gets the default page information to use.

Description

See also

Return

WP_Post Post object containing all the default post data as attributes

Source

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

Changelog

VersionDescription
3.5.0Use get_default_post_to_edit()
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.