On this page
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
File: wp-admin/includes/deprecated.php. View all references
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;
}
Related
Uses
| Uses | Description |
|---|---|
| get_default_post_to_edit() wp-admin/includes/post.php | Returns default post information to use when populating the “Write Post” form. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Use get_default_post_to_edit() |
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_default_page_to_edit