Set the ID in the current class

This commit is contained in:
Claudio Sanches 2019-11-13 15:21:43 -03:00
parent e95dcfb68a
commit 24c5bf41c8
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function wc_get_product( $the_product = false, $deprecated = array() ) {
function wc_get_product_classname( $product_type, $product_id = 0 ) {
$classname = WC_Product_Factory::get_product_classname( $product_id, $product_type );
return new $classname();
return new $classname( $product_id );
}
/**