• Resolved billamat

    (@billamat)


    Yesterday, using WP Staging, I blocked Woocommerce from updating. This morning it was updated.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Fayyaz

    (@fayyazfayzi)

    Hi @billamat,

    Do you use any plugin to schedule plugin updates? Open a free support ticket by filling out?this form?so that we can investigate this issue for you.

    Please make sure to include the system information and debug logs for a better resolution.

    Cheers,
    Fayyaz

    Thread Starter billamat

    (@billamat)

    I have no plugin to schedule plugin updates.

    Version6.4.2Site Languageen_USUser Languageen_USTimezone-07:00Home URLhttps://vineyardspress.comSite URLhttps://vineyardspress.comPermalink structure/%postname%/Is this site using HTTPS?YesIs this a multisite?NoCan anyone register on this site?NoIs this site discouraging search engines?NoDefault comment statusOpenEnvironment typeproductionUser count1Communication with www.remarpro.comwww.remarpro.com is reachable

    I do not have debug logging turned on. Every day I wake up to see that woocommerce has been updated, and every day I have to roll it back.

    Plugin Author Rene Hermenau

    (@renehermi)

    Hi,

    Usually plugins are not automatically updated, except you tell them to do.

    How and where did you disable the automatic update for wooommerce?

    If this does not work you can add the following code into a mu-plugin and try that:

    <?php function filter_plugin_updates( $value ) { unset( $value->response['woocommerce/woocommerce.php'] ); return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );
    
    

    Besides that, this is no wp staging problem, it might be better to report this issue to the woocommerce forum.

    I hope the code above works for you.

    all the best

    Rene

    Thread Starter billamat

    (@billamat)

    Rene, where in woocommerce.php should I add this line?

    Beginning? Middle? End? Before or after some other line that is already there? MTIA – Bill

    <?php function filter_plugin_updates( $value ) { unset( $value->response['woocommerce/woocommerce.php'] ); return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );

    Plugin Author Rene Hermenau

    (@renehermi)

    You need to add this code to a mu-plugin, not to woocommerce.php!

    Please read this:
    https://wp-staging.com/how-to-make-a-wordpress-mu-plugin/

    Important: Don’t add this code to your live site. Add it only to your staging site and make sure you have a backup of your site, just in case the code does not work or you accidentally copy the code wrongly.

    This one is better formatted and cleaner to copy:

    function prefix175623_filter_plugin_updates( $value ) {
    unset( $value->response[‘woocommerce/woocommerce.php‘] );
    return $value;
    }

    add_filter( ‘site_transient_update_plugins’, ‘prefix175623_filter_plugin_updates’ );

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Staging not blocking Woocommerce update’ is closed to new replies.