wp_create_nav_menu

wp_create_nav_menu

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('wp_create_nav_menu') is found 1 times:

  • /wp-includes/nav-menu.php line 375
    		 *
    		 * @param int   $term_id   ID of the new menu.
    		 * @param array $menu_data An array of menu data.
    		 */
    		do_action( 'wp_create_nav_menu', $_menu['term_id'], $menu_data );
    
    		return (int) $_menu['term_id'];
    	}
    
    	if ( ! $_menu || ! isset( $_menu->term_id ) ) {
    		return 0;
    

See this hook used in plugins: