Since we added the URL page under the Write menu, and there is already a Link page there (for adding links to the blogroll), we would like to remove the Link page from the menus to prevent confusion.
You can easily do this (in fact, you can totally rearrange WordPress menus in any way you like).
Removing an item from a menu is a simple matter. Lets add this code to the
admin_menu()
function:// Hook to admin menu function admin_menu() { global $submenu; // remove 'Link' from Write menu unset($submenu['post-new.php'][15]); // submenu pages add_submenu_page('post-new.php', __('Add Photo',$this- >plugin_domain) , __('Photo', $this->plugin_domain) , 1 , 'add-photo', array(&$this, 'display_form') );
That's all! The link page no longer shows in the menu.