get_default_page_to_edit() – Gets the default page information to use.

You appear to be a bot. Output may be restricted

Description

Gets the default page information to use.

Usage

$WP_Post = get_default_page_to_edit();

Parameters

Returns

WP_Post Post object containing all the default post data as attributes

Source

File name: wordpress/wp-admin/includes/deprecated.php
Lines:

1 to 7 of 7
function get_default_page_to_edit() {
  _deprecated_function( get_default_page_to_edit, '3.5.0', "get_default_post_to_edit( 'page' )" );

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

 View on GitHub View on Trac