Removing "Pro Upgrade" Item From Menu [UPDATE]


There was an exchange on this forum earlier this year discussing options to remove the "Pro Upgrade" button and menu option for users' admin bars and menu options.

The admin bar option has been taken care of since and I'm now looking to remove the "Pro Upgrade" link from the admin menu options.

Does anyone know if there is a plugin or edit I can implement to remove the link from the menu options?

Many thanks.

PS: Pardon the duplicate query as I've tried to revive that old discussion here without response.

  • aristath
    • Recruit

    Hello there @Catalyx, I hope you're well today!

    Try the following: create a new file called remove-prosites-menu.php inside your mu-plugins folder and paste the following inside it:

    function my_custom_remove_pro_sites_menu() {
      global $ProSites;
      remove_action( 'admin_menu', array(&$ProSites, 'plug_pages') );
    add_action( 'admin_menu', 'my_custom_remove_pro_sites_menu', 1 );
    add_action( 'admin_menu', 'my_custom_remove_pro_sites_menu', 99 );

    Let me know if that works for you...


  • Catalyx
    • Design Lord, Child of Thor

    Hi Aristath,

    Thanks for looking into this.

    I've installed the file wp-content\plugins\remove-prosites-menu.php logged off, cleared cookies and logged in again to find the "Pro Upgrade" menu option still present at users' sites.

    Please let me know if there are other steps I should take.


  • Aaron
    • CTO

    This would be the correct code:

    Plugin Name: Remove Pro Sites Admin menu
    Description: Removes pro sites admin menu item
    Author: Aaron Edwards (Incsub)
    function my_custom_remove_pro_sites_menu() {
      global $psts;
      remove_action( 'admin_menu', array(&$psts, 'plug_pages') );
    add_action( 'admin_menu', 'my_custom_remove_pro_sites_menu', 99 );

    Then you can activate it.

  • aristath
    • Recruit

    Hello there!
    As we haven't heard back from you we're going to assume the problem was sorted out and mark this thread as resolved.

    If it wasn't resolved, or you have any more questions related to this thread please feel free to post them below and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)

    Otherwise, thanks for using the forums, and, as always, for being a member of WPMU DEV, it's a pleasure to help you out and we look forward to being of assistance in the future.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.