menu_publish()

The menu_publish() function is used to publish your menu. Use this function when you are contented with your menu and there are no more options to add, while after this function is called, the menu cannot be modified. Only after this function is executed you can use the menu_execute() function.

 

This function does not accept any arguments and does not return anything. The menu_add_option() and menu_add_submenu() functions must be placed between the menu_create() function and menu_publish() function.