WP_Customize_Nav_Menus::insert_auto_draft_post

SummerySummery

Add a new auto-draft post.

Syntax

WP_Customize_Nav_Menus::insert_auto_draft_post( array $postarr )

ParametersParameters

$postarr

(array) (Required) Post array. Note that post_status is overridden to be auto-draft

ReturnReturn

(WP_Post|WP_Error) Inserted auto-draft post object or error.

SourceSource

File: wp-includes/class-wp-customize-nav-menus.php


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top