title: How to add_action to Woocommerce hook?
body: <p>I simply want to add an action to an existing Woocommerce hook (woocommerce_after_cart in this case). After adding a function with <code>add_action()</code> and loading the page back up, my function doesn't run. Not until I manually <code>do_action()</code> does my function finally run. I just want to know why when I add the action originally, it's not being acknowledged.</p>
  
  <p>I've already checked out Wordpress codex for hooks and seems like I'm doing everything correct. I'm adding the action in a custom theme, not <code>functions.php</code> but I've tried that too.</p>
  
  <p>Full thing looks like this:</p>
  
  <pre><code>function abc() {
     print_r("hello world");
  }
  add_action('woocommerce_after_cart','abc');
  </code></pre>
  
  <p>Hello world does not print on page load, only after I call <code>do_action()</code>, why?</p>