Add Revision support to WooCommerce Products

11 Comments

  1. Charles

    This article sounds like it would share a snippets that brings revisions to products, but the code is nowhere to be found? Unless this is only a type of “Hey, client requested something, and we did it” kind of post?

    Thanks for the clarification, if I’ve missed the obvious :)

    1. Hi Charles,

      It sounds like you can’t see the gist script? Here’s a direct link if that’s the case: https://gist.github.com/spigotdesign/157cb4eafa55a4c0b8e52f17f85d8819#file-product-revision-support-php

      ~ Bryan

      1. Charles

        Hello, thanks for the link, and in deed, the page does not display any gist scripts on my setup (Mac OS X 10.11.6, Chrome 78.0.3904.108, if it can be useful to you)

      2. Very strange, works on all browsers for me. How about this link: https://gist.github.com/spigotdesign/157cb4eafa55a4c0b8e52f17f85d8819

  2. Where can the revisions be viewed? I don’t see any changes on the actually product pages themselves after implementing the code.

    1. Hi Dayle,

      I haven’t checked this in a while but it doesn’t appear to work any longer. I’ll do a bit of research and see if we can find out why and perhaps a new method…

      1. Aaron

        Was there any outcome to an alternative solution

      2. Hey Aaron – I’ve updated the code with the changes necessary to get this to work. Simply change $args to $supports

  3. Paul

    Greetings!

    great way to check the audit trail of the products. Right now we’re experiencing … duplication of product records with differing information.

    Where would I add this snippet though?

    1. Hi Paul. You can put this snippet in your functions.php file, or better yet, a custom functions plugin.

  4. Thanks mate, this saved me some time. ;)

Leave a Reply

Your email address will not be published. Required fields are marked *