I’ve fixed it… Posting the solution here if it helps someone…
Here is the final code that fixed my problem :
/** Remove the Menu registered by Plugin **/ add_action( 'admin_menu', 'my_remove_tp', 999 );function my_remove_tp() { remove_submenu_page( 'themes.php', 'upprev/admin/index.php' ); }
/** Re-Register the menu from here **/
add_action('admin_menu', 'upprev_menu2');function upprev_menu2(){
add_options_page('upPrev Menu', 'upPrev', 'manage_options', 'upprev/admin/index.php', '');
}
Related Posts:
- How do I create a custom role capability?
- Prevent network activation of plugin
- Uninstall script for a plugin in Multisite
- Changing Plugin Load Order
- Admin settings update updating every time home page is hit?
- What’s the best method for emptying an option created with the Settings API?
- What is wrong with using add_option with Multisite instead of add_blog_option in a plugin
- What is the recommended way to create plugin administration forms?
- How to Get a List of Sub Blogs without Using get_blog_list()?
- How to add a new plugin page under desired Options page?
- Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
- Cron firing my function everytime wp-admin is visited
- Overwriting Core WordPress Functions with Plugins
- Error getting correct blog_id on MU from functions.php
- How do I make specific plugin functionality apply to different sites in a network?
- WordPress multisite apply different options over each site from same plugin
- Naming Admin Menus and Submenus
- Filters ‘request’ and ‘parse_query’ not firing in sites.php nor link-manager.php
- Current class on admin menu using add_submenu_page()
- Add Admin Menu Inside Construct or Init
- Multisite, sharing content by URL
- Only allow plugin to be activated on root site of multisite
- How to use wp_set_password in a plugin?
- WordPress Media mime type filter problem 4.0
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- add_menu_page() with function inside a class [duplicate]
- How to add Font Awesome 5 icons in WP Admin dashboard menu?
- How to put placeholder text in the main post input area?
- Unified Approach for Placing Option Pages
- Plugin with specific admin menu icon
- What is the best way to overwrite /wp-admin/ms-delete-site.php
- Where should I store global data for my multi-site WordPress plugin?
- unable to stop loop when using wp_insert_post with publish_post hook
- Customize multisite site creation with user data
- Multisite plugin development and wp_enqueue_script
- how to activate plugin network-wide, and save setting across sites
- Sharing a common set of image files for media library, across all sites within multisite
- What is difference between blog id and site id?
- OOP Plugin and Menu – Call to undefined function register_setting()
- How to create a Tools menu on the Network Admin dashboard from a plugin
- Override the default Add/Edit site forms of the Network Panel in custom plugin
- How to set “Site Address (URL)” programmatically on WP multisite?
- How to associate an existing user to a site in a multisite setup programmatically
- WordPress Multisite with Azure B2C redirect_urls after Login
- Global State During an Admin Post
- How To Change Post Author Default?
- Howto: Use Custom Post Types as Submenu Items in Admin
- Sub Menu content is being duplicated
- Adding (blog-specific) links to “My Sites” admin page
- Plugin menu addition in multisite
- Set different custom menu items for different user roles
- Show/Hide ‘add new user’ custom fields in wordpress admin panel by click another field
- What should happen when a WordPress Plugin is activated across the network (Network Wide Activation)
- Bootstrap doesn’t work on admin menu page-How to override wp-admin style?
- is it recommended to use WP_List_Table?
- Multiple Plugin best practice in Multisite
- Plugin sub-menu pages recommended structure and links
- Add a page in admin without adding menu item
- Selectively update themes in WordPress multisite
- how to invoke wordpress API from other existing PHP system
- WP Multisite login not working on one subsite. Possibly cookies/ history issue?
- register_activation_hook on multisite
- Silently register plugin pages
- WordPress theme options Menu
- Print Dashboard submenu name and filename
- I am trying to make a page in the admin section similar to the appearance of the Profile page for users
- WordPress multisite,use same cookies across all website?
- Unable to get a simple plugin admin page to work
- WP: Search and replace in DB programmatically
- How to get current logged-in user details in multisite?
- How to remove a CPT Menu from the Root Admin only
- Disable Auto-Expanding Menu in WordPress Admin Menus
- in_array function Problem
- add_action wp_ajax_ not loading in plugin file WP Network
- Clean way to initialize plugin in newly-added site when plugin has been network activated?
- Use options to control jQuery plugin
- How to share user data across multiple WordPress websites?
- Is there anything special required to make a plugin work in a multisite environment?
- How to edit wp-signup.php content using plugin
- Proper way to create an administration page without adding it to the menu
- Pause plugin option page until all data manipulation is complete
- How to add text editor in plugin menu?
- How to make an admin plugin menu page go full screen?
- How do I ensure I can loop through every enqueued script and CSS?
- How to add admin.php to WP Admin Menu Link
- Custom Plugin activation error in Multisite
- Replace “content-area” of themes 404 page with plugin?
- Multisite and the JSON REST API: How to?
- Testing Plugins for Multisite
- Convert each new line in the textfield as a new value in an array
- Same header/footer in Admin, across all network sites in multisite
- How put the correct URL to sub-menu plugin?
- Developing a plugin where users can edit entries saved in database
- Add a description/hint field in the admin page of a plugin
- Forcing ALL plugin Admin menus into a separate menu
- Link to a admin submenu item using a custom link
- Plugin admin list pages as submenu
- Menu_slug used for creating options page
- How to design WooCommerce-like admin tabs for plugin settings page?
- Show Admin Menu