title: Custom suffix for specific product variation in WooCommerce
body: <p>I am trying to add a suffix to the price of a variable item.
  It only has to show when that specific item is selected.</p>
  
  <p>I tried some different codes from stackoverflow, but all of the add the suffix to all variables instead of just the one I need.</p>
  
  <p>Currently I am using following code, but it gives a critical error.</p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Cannot use object of type WC_Product_Variation as array</p>
  </blockquote>
  
  <pre><code>add_filter('woocommerce_available_variation', 'variation_price_custom_suffix', 10, 3 );
  function variation_price_custom_suffix( $variation_data, $product, $variation ) {
  // For a specific product variation ID
  if( $variation['variation_id'] == 9256 ) {
  
      $variation_data['price_html'] .= ' ' . __("Text after price");
  }
  
  return $variation_data;
  }
  </code></pre>
  
  <p>Anyone who can help me out?</p>