_wp_auto_add_pages_to_menu

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Automatically add newly published page objects to menus with that as an option.

Syntax

_wp_auto_add_pages_to_menu( string $new_status, string $old_status, WP_Post $post )

ParametersParameters

$new_status

(string) (Required) The new status of the post object.

$old_status

(string) (Required) The old status of the post object.

$post

(WP_Post) (Required) The post object being transitioned from one status to another.

SourceSource

File: wp-includes/nav-menu.php


			

ChangelogChangelog

Changelog
Version Description
3.0.0 Introduced.
Scroll to Top