Keep track of Database Updates?
-
I was wondering how WooCommerce keeps track of whether the database needs updating or not. I have a reporting tool where I want to report if a website I run needs to update it’s woocommerce database.
Looking at some of the options my first thought was
woocommerce_admin_notices
which just heldarray( 'update' );
but even after updating the database it didn’t change substantially enough to keep track reliably, just added “legacy_shipping” to the array.I also notice there’s a
woocommerce_db_version
option but then I’m not sure what or how to compare it to the version it expects.Pretty much I’m looking for a reliable way to keep track of when WooCommerce wants to update the database.
- The topic ‘Keep track of Database Updates?’ is closed to new replies.