I want display same product description from another woocommerce product. So create a shortcode that shortcode get description by product
function get_product_Des( $atts, $content = null )
{
extract(shortcode_atts(array(
'product_id' => ''
), $atts));
$ReturnValue = "";
$product = wc_get_product( $product_id );
if($product) $ReturnValue = $product->get_description('edit');
return($ReturnValue);
}
add_shortcode('getproductdes', 'get_product_Des');
But product is that shortcode not show same as original main description. shortcode show only text, it remove
and some html code, is there anyway i can get as same description with same html code.