null, 'display' => true, ) ); if ( $args['product_id'] ) { $productID = intval( $args['product_id'] ); } else { global $post; if ( ! $post ) { return ''; } $productID = $post->ID; } $product = wc_get_product( $productID ); ob_start(); if ( $product ) { PricingTable::getInstance()->renderPricingTable( $product->get_id(), null, $args ); } return ob_get_clean(); } }