Core Function
View Source on Trac ↗ _wp_auto_add_pages_to_menu()
_wp_auto_add_pages_to_menu( mixed $new_status, mixed $old_status, mixed $post ) Automatically add newly published page objects to menus with that as an option.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $new_status string | The new status of the post object. Required |
| $old_status string | The old status of the post object. Required |
| $post WP_Post | The post object being transitioned from one status to another. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
3.0.0
Source File
wp-includes/nav-menu.php
Advertisement