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:
parent
a26f38f3a1
commit
2c8e45830a
|
@ -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() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue