WP_Customize_Nav_Menus::save_nav_menus_created_posts

SummerySummery

Publish the auto-draft posts that were created for nav menu items.

Syntax

WP_Customize_Nav_Menus::save_nav_menus_created_posts( WP_Customize_Setting $setting )

DescriptionDescription

The post IDs will have been sanitized by already by WP_Customize_Nav_Menu_Items::sanitize_nav_menus_created_posts() to remove any post IDs for which the user cannot publish or for which the post is not an auto-draft.

ParametersParameters

$setting

(WP_Customize_Setting) (Required) Customizer setting object.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top