Problem with updating Yootheme Pro Theme

Hi there,

I’m currently considering purchasing MainWP Pro and am testing the free version. Unfortunately, the Yootheme Pro update isn’t working, although all plugins are functioning correctly. I found this post in your forum: Theme updates detected but not able to update via mainWP

https://i.imgur.com/L5DVhts.png

Was the problem resolved?

Many thanks in advance
Torsten

Hey @Torsten

Welcome to the MainWP community!

MainWP can only detect and run theme updates reliably when the theme uses the standard WordPress update system on the child site. A lot of premium themes (YOOtheme Pro included) run updates through their own licensing and update API, which can cause such issues.

We have a doc that explains the limitation and the usual workaround. It uses two filters (mainwp_detect_premium_themes and mainwp_request_update_premium_themes) that you insert via the MainWP Custom Dashboard Extension, where you add the theme slug(s). Here it is: https://mainwp.com/kb/premium-theme-updates-not-detected/

If the theme still won’t update after that, it usually means the theme’s update API doesn’t allow remote updates in a way MainWP can hook into, so the update has to be done inside the child site’s WP Admin.

Hi Bojan,

many thanks for your fast reply, could you please help me with filling out the code snippet you mentioned in your last post. Or is this something I have to pass over to Yootheme support?

Many thanks
Torsten

You don’t need to ask YOOtheme support just to fill in the snippet.

In our example, each theme-slug-x is simply the theme folder name on the child site, under:

/wp-content/themes/

So if you see a folder like:

/wp-content/themes/yootheme/

then the slug you add is:

$premiums[] = 'yootheme';

You can verify the folder name via your hosting File Manager or FTP/SFTP by browsing to wp-content/themes/ and copying the exact folder name.

If you’re using a child theme, it’s worth adding both the child theme folder and the parent theme folder.

Repeat the same process for any premium with which you’re experiencing this.

I did as you suggested but its still not working. I added this code to the dashboard:

I only use Yootheme Themes, no other Premium Themes. There is only one folder:

https://i.imgur.com/zJXpaUp.jpeg

Do you have any other ideas what the problem could be?

Many thanks
Torsten

Please try adding it to the PHP Section of the Custom Dashboard extension, not the CSS section.

Hhmmm, that was stupid. I put it now in the correct PHP section of the dashboard and it worked for 6 websites now. I will test it for a few more days just to make sure all is working correctly.

Many thanks for your fast help, Bojan :slight_smile:

1 Like