title: Access php object key in Woocommerce product
body: <p>I have an object inside <code>$args['product']</code> containing this key</p>
  
  <pre><code>["prices_array":"WC_Product_Variable":private]
  </code></pre>
  
  <p>When I <code>var_dump($args['product'])</code>, that key and its values are shown but when I loop, that key is skipped</p>
  
  <pre><code>foreach ($args['product'] as $key =&gt; $value) {
      var_dump($key);
      var_dump($value);
  }
  </code></pre>
  
  <p>How can I access this key in php? I even tried to <code>json_encode($args['product'])</code> but same result, that key is skipped.</p>
  
  <p>Thanks</p>