title: Access WC() class of Woocommerce from anywhere
body: <p>while I develop my website, I try to display the content of WC Session like this :</p>
  <pre><code>$datas = WC()-&gt;session-&gt;get('datas'); var_dump($datas); 
  </code></pre>
  <p>I can see all my datas stored.</p>
  <p>But when I submit my form, and use <code>admin_post</code> action, I can't use <code>WC()</code>.. (Weird because in ajax, It works)
  Well I searched and I tried :</p>
  <pre><code>$session = new WC_Session_Handler();
  $session_data = $session-&gt;get_session_data();
  var_dump($session_data);
  </code></pre>
  <p>But no datas here.. How can I access <code>WC()</code> function ?</p>
  <p>I need for session but also to add to cart or empty cart</p>