Table of Contents

Premium Plugin Updates Not Detected

By default, MainWP should support all premium plugins that use standard WP Update API.

Troubleshooting

  1. First, go to the child site and see WP itself detects available updates the plugins in the issue.
  2. If Updates are detected on the child site, MainWP Dashboard should detect them too. Resync your sites and recheck. If still not detected, check the enhance compatibility section.
  3. If the updates are not detected by WP, try to force recheck by refreshing the WP Admin > Updates page in the child site. If updates show up in the child site, after your resync your dashboard, updates should show in there too. If they don’t show up on the child site, you should report the problem to the plugin author.
  4. If updates show up in the child site, but not in MainWP Dashboard after resync, check the enhance compatibility section.

However, if some authors decide to build a custom Update API, it may cause compatibility issues.

Enhance Compatibility

To enhance compatibility, we have a two custom filters. mainwp_detect_premium_plugins_update for improving detection of available updates, and mainwp_request_update_premium_plugins for improving the process of updating premium plugins.

To use those two filters, please follow these steps:

  1. Login to your MainWP Dashboard
  2. If not already installed, install the MainWP Custom Dashboard Extension.
  3. Next, copy the following code snippet to the PHP Section of the Custom Dashboard extension:
    // Improves detection of available updates for premium plugins
    add_filter( 'mainwp_detect_premium_plugins_update', 'hook_mainwp_detect_premium_plugins_update' );
    function hook_mainwp_detect_premium_plugins_update( $premiums = array() ){
       $premiums[] = 'plugin-slug';
       return $premiums;
    }
    
    // Improves the update process of premium plugins
    add_filter( 'mainwp_request_update_premium_plugins', 'hook_mainwp_request_update_premium_plugins' );
    function hook_mainwp_request_update_premium_plugins( $premiums = array() ){
       $premiums[] = 'plugin-slug';
       return $premiums;
    }
    
  4. Update the code as per your requirements. This includes adding slug(s) of plugins that have problems with detecting updates. If you are unsure where/how to find you can contact the plugin author and ask for that info. In case you have to add support for multiple plugins, you can handle it like this:
    // Improves detection of available updates for premium plugins
    add_filter( 'mainwp_detect_premium_plugins_update', 'hook_mainwp_detect_premium_plugins_update' );
    function hook_mainwp_detect_premium_plugins_update( $premiums = array() ){
       $premiums[] = 'plugin-slug-1';
       $premiums[] = 'plugin-slug-2';
       $premiums[] = 'plugin-slug-3';
       $premiums[] = 'plugin-slug-4';
       return $premiums;
    }
    
    // Improves the update process of premium plugins
    add_filter( 'mainwp_request_update_premium_plugins', 'hook_mainwp_request_update_premium_plugins' );
    function hook_mainwp_request_update_premium_plugins( $premiums = array() ){
       $premiums[] = 'plugin-slug-1';
       $premiums[] = 'plugin-slug-2';
       $premiums[] = 'plugin-slug-3';
       $premiums[] = 'plugin-slug-4';
       return $premiums;
    }
    
  5. Once the code snippet is ready, Save it and resync your sites.

Alternatively, if you don’t want to use the Custom Dashboard plugin, the code snippet can be added to the functions.php file of the MainWP Dashboard site active theme.

If that doesn’t help, please feel free to open a helpdesk ticket so we can take a look, but as mentioned earlier, in some cases, depending on the Update API, there might be no way to make it fully compatible.

Still Have a Questions?
Search for additional solutions in the MainWP Community or start your own discussion