From 6858824de19aac1faf78f4843dc3cc782aea788c Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 20 Dec 2016 13:37:20 +0000 Subject: [PATCH] missing variable --- includes/data-stores/class-wc-product-data-store-cpt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/data-stores/class-wc-product-data-store-cpt.php b/includes/data-stores/class-wc-product-data-store-cpt.php index 12c72e57ad2..bb11561137c 100644 --- a/includes/data-stores/class-wc-product-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-data-store-cpt.php @@ -102,7 +102,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da $product->apply_changes(); $this->clear_caches( $product ); - do_action( 'woocommerce_new_' . $post_type, $id ); + do_action( 'woocommerce_new_product', $id ); } }