How to move plugin link from left navigation to a different location?
There is a very popular plugin that gives you this ability in an easy package Admin Menu Editor
There is a very popular plugin that gives you this ability in an easy package Admin Menu Editor
Getting 404 page not found error while trying to access add new plugin / themes
Don’t use a function for the callback, use a class. Something like this: class Competition_Manager_Page { private $extra; public function set_extra( $value ) { $this->extra = $value; } public function render() { // show you page content, then: print $this->extra; } } You can extend the class’ functionality later. Now, when you register the menu, … Read more
If I understand correctly what you are asking, you need the $menu_slug used when adding your menu pages: //add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); //add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function ); $your_link_url = admin_url( ‘admin.php?page=”.$menu_slug, “http’ ); OR SPECIFICALLY FOR YOU $your_link_url = admin_url( ‘admin.php?page=nes_vendor_new’, ‘http’ ); You can always verify … Read more
How to give a File Upload option in wordpress Widget backend?
The WordPress admin menu scrolls with the page if its height exceeds the height of the window (ie. the menu doesn’t fit on the screen). If you’re adding custom post types then this could well happen, especially on smaller screens. This is expected behaviour. You wouldn’t be able to access the items at the bottom … Read more
You have misunderstand the purpose of add_submenu_page and it’s callback function. If you take a look at WordPress Codex you will see that the purpose of this function , in your case the slides_page function, is to output the content of the page. ie output HTML code etc $function (callback) (optional) The function to be … Read more
You should be able to use the admin_url() function; it returns the admin URL with the first parameter appended, optionally: admin_url( ‘admin.php?page=bigname’ );
The $location parameter was incorrect. Try this: function redirect_to_local_110(){ wp_redirect( home_url() ); exit; } function add_home_link() { add_menu_page( ‘Course’, ‘Course’, ‘read’, ‘home’, ‘redirect_to_local_110’, ‘dashicons-welcome-learn-more’); } add_action( ‘admin_menu’, ‘add_home_link’, 1001 ); Or you could use this: function redirect_to_local_110(){ wp_redirect( ‘http://www.example.com’, 301 ); exit; } function add_home_link() { add_menu_page( ‘Course’, ‘Course’, ‘read’, ‘home’, ‘redirect_to_local_110’, ‘dashicons-welcome-learn-more’); } add_action( … Read more
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