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:

Description

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

Related Functions

get_default_page_to_edit, get_default_link_to_edit, get_post_to_edit, get_real_file_to_edit, get_default_feed

Top Google Results

User discussions

wpseek mobile