title: delete_post hook in Wordpress not working
body: <pre><code>add_action( 'delete_post', 'test_function' );
  function test_function(){
      echo "Hello!";
  }
  </code></pre>
  
  <p>The "Hello!" isn't showing up when I delete a post (It is a custom post-type, but that shouldn't matter right?). How do I debug this?</p>
  
  <p><strong>EDIT:</strong> I can't put that code in any front-end files like header.php or index.php because I won't be able to view the output when I delete a post from the back-end. What's the best way to tackle this?</p>
  
  <p>Thanks</p>