Remove commented out stock quantity value

This commit is contained in:
Rebecca Scott 2020-03-24 12:09:32 +10:00
parent f580b34aa7
commit 496b602eb4
1 changed files with 0 additions and 2 deletions

View File

@ -49,8 +49,6 @@ class WC_Products_Tracking {
'is_virtual' => $product->get_virtual(), 'is_virtual' => $product->get_virtual(),
'is_downloadable' => $product->get_downloadable(), 'is_downloadable' => $product->get_downloadable(),
'manage_stock' => 0 == $product->get_manage_stock() ? 'N' : 'Y', 'manage_stock' => 0 == $product->get_manage_stock() ? 'N' : 'Y',
// 'stock_quantity_update' => 'Y' TODO this may require hooking in to product edit at a lower level, which doesn't seem possible for an extension.
// You can only get the current product, not the product before the update...
); );
WC_Tracks::record_event( 'product_update', $update_properties ); WC_Tracks::record_event( 'product_update', $update_properties );