admin_head-nav-menus.php
The WordPress Core admin head nav menus php hook.
Description
Parameters (1)
- 0. $wp_delete_orphaned_draft_menu_items (string) =>
'_wp_delete_orphaned_draft_menu_items'
- The
wp
delete orphaned draft menu items.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_head-nav-menus.php', $wp_delete_orphaned_draft_menu_items );
- The following example is for adding a hook callback.
- // define the admin_head-nav-menus.php callback
- function action_admin_head_nav_menus_php( $wp_delete_orphaned_draft_menu_items ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'admin_head-nav-menus.php', 'action_admin_head_nav_menus_php', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'admin_head-nav-menus.php', 'action_admin_head_nav_menus_php', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/admin-filters.php
- add_action( 'admin_head-nav-menus.php', '_wp_delete_orphaned_draft_menu_items' );