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.
Automatically add newly published page objects to menus with that as an option.
(string) (Required) The new status of the post object.
(string) (Required) The old status of the post object.
(WP_Post) (Required) The post object being transitioned from one status to another.