Skip to main content
All CollectionsMainWP Core
Premium theme updates not detected
Premium theme updates not detected
Updated over 2 months ago

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

Troubleshooting

  1. First, go to the child site and see WP itself detects available updates for the themes 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 theme 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 two custom filters. mainwp_detect_premium_themes_update for improving detection of available updates, and mainwp_request_update_premium_themes for improving the process of updating premium themes.

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 themes add_filter( 'mainwp_detect_premium_themes_update', 'hook_mainwp_detect_premium_themes_update' ); function hook_mainwp_detect_premium_themes_update( $premiums = array() ){ $premiums[] = 'theme-slug'; return $premiums; } // Improves the update process of premium themes add_filter( 'mainwp_request_update_premium_themes', 'hook_mainwp_request_update_premium_themes' ); function hook_mainwp_request_update_premium_themes( $premiums = array() ){ $premiums[] = 'theme-slug'; return $premiums; }
  4. Update the code as per your requirements. This includes slug names of themes that have problems with detecting updates. If you are unsure where/how to find you can contact the theme author and ask for that info. In case you have to add support for multiple themes, you can handle it like this:

    // Improves detection of available updates for premium themes add_filter( 'mainwp_detect_premium_themes_update', 'hook_mainwp_detect_premium_themes_update' ); function hook_mainwp_detect_premium_themes_update( $premiums = array() ){ $premiums[] = 'theme-slug-1'; $premiums[] = 'theme-slug-2'; $premiums[] = 'theme-slug-3'; $premiums[] = 'theme-slug-4'; return $premiums; } // Improves the update process of premium themes add_filter( 'mainwp_request_update_premium_themes', 'hook_mainwp_request_update_premium_themes' ); function hook_mainwp_request_update_premium_themes( $premiums = array() ){ $premiums[] = 'theme-slug-1'; $premiums[] = 'theme-slug-2'; $premiums[] = 'theme-slug-3'; $premiums[] = 'theme-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.

Did this answer your question?