WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get default post to edit

Contents

Description

Default post information to use when populating the "Write Post" form.

Usage

<?php get_default_post_to_edit$post_type$create_in_db ); ?>

Parameters

$post_type
(string) (optional) A post type string, defaults to 'post'.
Default: post
$create_in_db
(boolean) (optional)
Default: false

Return Values

(object) 
stdClass object containing all the default post data as attributes

Change Log

Since: 2.0

Source File

get_default_post_to_edit() is located in wp-admin/includes/post.php