Added new action "woocommerce_product_read" (#23181)

* Added new action "woocommerce_read_product_data"

* Added new action woocommerce_product_read
This commit is contained in:
oscargare 2019-07-04 19:17:34 +02:00 committed by Rodrigo Primo
parent a26f38f3a1
commit 2c8e45830a
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,8 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
$this->read_product_data( $product );
$this->read_extra_data( $product );
$product->set_object_read( true );
do_action( 'woocommerce_product_read', $product->get_id() );
}
/**