title: Wordpress : woocommerce action hook to run before payment gateway redirect
body: <p>I am newbie to Wordpress and  I want to run a function before payment gateway redirection in woo commerce. </p>
  
  <pre><code>add_action('woocommerce_checkout_order_processed', 'initiate_order', 10, 1);
  
  function initiate_order($order_id) {
      include('woocommerce/includes/emails/class-wc-email-admin-initiate-order.php');
      $email = new WC_Email_Admin_Initiate_Order();
      $email-&gt;trigger($order_id-&gt;id);
  }
  </code></pre>
  
  <p>How can I initiate a mail to admin about the order before payment gateway redirection?</p>