get_default_page_to_edit

Gets the default page information to use.

Description

(WP_Post) get_default_page_to_edit(); 

Returns (WP_Post)

Post object containing all the default post data as attributes


Usage

  1. if ( !function_exists( 'get_default_page_to_edit' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_default_page_to_edit(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function get_default_page_to_edit() { 
  2. _deprecated_function( __FUNCTION__, '3.5.0', "get_default_post_to_edit( 'page' )" ); 
  3.  
  4. $page->post_type = 'page'; 
  5. return $page;