get_default_post_to_edit
get_default_post_to_edit ( $post_type = 'post', $create_in_db = false )
Parameters:- (string) post_type Optional. A post type string. Default 'post'.
- (bool) create_in_db Optional. Whether to insert the post into database. Default false.
Returns:- (WP_Post) Post object containing all the default post data as attributes
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Returns default post information to use when populating the "Write Post" form.