Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created August 14, 2018 13:50
Show Gist options
  • Save lukecav/6a99b1e58e0176c13ec8eb2c9d2daa64 to your computer and use it in GitHub Desktop.
Save lukecav/6a99b1e58e0176c13ec8eb2c9d2daa64 to your computer and use it in GitHub Desktop.

Revisions

  1. lukecav created this gist Aug 14, 2018.
    7 changes: 7 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    add_filter( 'woocommerce_register_post_type_product', 'wc_modify_product_post_type' );

    function wc_modify_product_post_type( $args ) {
    $args['supports'][] = 'revisions';

    return $args;
    }