Support » Plugin: Easy Updates Manager » Code to Update Themes with NGINX Server

  • Resolved khelgevold

    (@khelgevold)


    Hi,

    My company started using FlyWheel to manage/host our WordPress accounts for us and our dealers. We use your plugin to manage automatic updates as we have so many sites.

    When we first moved over to FlyWheel we were having problems getting our Easy Updates Manager plugin to automatically update our plugins. Because, in all sites they manage, they disable automatic updates for core which prevents the plugin from updating things. This is standard practice for their sites, and they don’t remove that line from the code, and we don’t have access to it.

    However, they gave us this code to put in the functions.php file and it has since been working great!

    add_action(
    ‘wp_update_plugins’, function() {
    if ( wp_doing_cron() && ! doing_action( ‘wp_maybe_auto_update’ ) ) {
    do_action( ‘wp_maybe_auto_update’ );
    }
    }
    , 20
    );

    Now, we’d like to have your plugin automatically update the theme we use. I tested it on this site today, and it won’t automatically update the theme. Is there another code we can put into the functions.php file that will allow the plugin to do that?

    FlyWheel said we would need a similar code for an NGINX Server.

    Thank you for your help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Code to Update Themes with NGINX Server’ is closed to new replies.