wphooks.info - wp_create_nav_menu

wp_create_nav_menu

The hook occurs in the following file:

wp-includes/nav-menu.php:
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
			return $_menu;

		/**
		 * Fires after a navigation menu is successfully created.
		 *
		 * @since 3.0.0
		 *
		 * @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;

	$menu_id = (int) $_menu->term_id;