Restore removed action

This commit is contained in:
Mike Jolley 2017-11-13 19:07:02 +00:00
parent 04d8184496
commit 7347b25ce0
1 changed files with 6 additions and 0 deletions

View File

@ -722,6 +722,12 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
}
}
if ( $product->is_type( 'variation' ) ) {
do_action( 'woocommerce_process_product_file_download_paths', $product->get_parent_id(), $product->get_id(), $downloads );
} else {
do_action( 'woocommerce_process_product_file_download_paths', $product->get_id(), 0, $downloads );
}
return update_post_meta( $product->get_id(), '_downloadable_files', $meta_values );
}
return false;