Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27289
    Profile photo of Terry Hale
    Terry Hale
    Participant

    Since Symbiostock requires WooCommerce 2.5.5, just wanted to share a bit of code that will help us remember not to update WooCommerce to the latest version.  This might also help prevent clients from wondering why all plugins on a site aren’t at their current versions.

    This will go in your theme/child theme functions.php file:

    // remove update notice for WooComerce plugin
    function remove_WC_update_notification( $value ) {
        if ( isset( $value ) && is_object( $value ) ) {
            unset( $value->response[ 'woocommerce/woocommerce.php' ] );
        }
        return $value;
    }
    
    add_filter( 'site_transient_update_plugins', 'remove_WC_update_notification' );
    
    #27294
    Profile photo of Robin
    Robin
    Keymaster

    Hey Terry,

    Thanks for that. We were looking to add something along these lines as an option in the settings in the next release. Good stuff!

    #27419
    Profile photo of Terry Hale
    Terry Hale
    Participant

    Cool, I hope someone finds it useful.  Got the idea for looking that up after seeing the option to disable the Woo updater prompt.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.