Woocommerce: get_formatted_name() of a variation
<p>I'm trying to get the name of a variation in woocommerce, currently im using this:</p>

<pre><code>$variationDetails = wc_get_product($variation_id);
$variationDetails-&gt;get_formatted_name();
</code></pre>

<p>But get_formatted_name() returns a long string with too many details, I only need the simple name of the variation. I've tried with $variationDetails->get_title() but that returns only the product title instead the variation name.</p>

<p>Is there a simple function to get the variation name?</p>