How can I place a page link to the sidebar admin bar?

I have added custom menu link by following. Hope it will be helpful. add_action( ‘admin_menu’ , ‘custom_admin_menu_new_items’ ); function custom_admin_menu_new_items() { global $menu; add_menu_page( ‘My Page’, ‘My Page’, ‘manage_options’, ‘my-page’, ”,”, 6 ); foreach($menu as $mIndex => $mData) { if($mData[2] == ‘my-page’) { $menu[$mIndex][2] = ‘http://mypage.com/mypage’; break; } } } Action hook admin_menu is used. … Read more

Removing admin menu items with white spaces

There are more reliable functions to remove menus and submenus in WP admin area. Those functions are remove_menu_page and remove_submenu_page. I don’t know if the menus you want to remove are top level menus or submenus neither the slug of the menus (needed for these functions), so I can not give you the exact code … Read more

How to redirect one admin URL to another when admin page URL has “/admin.php?page=” in it?

I think you will achieve what you want by using [get_current_screen()][1] and reading the properties from WP_Screen object returned as needed. In your case, I think you will need $screen->base or maybe $screen->id. According to WordPress Codex: id (string) The unique ID of the screen and base (string) The base type of the screen. For … Read more

no themes or editor under appearance menu

I would ensure that your user is an ‘admin’ type. Then I would reinstall WP core files (via the update, if that is available; otherwise you will have to do a selective file transfer so as to not to overwrite your settings). I would also rename the ‘plugins’ folder to ‘xxplugins’ temporarily, to ensure that … Read more