> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaymail/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaymail/drag-and-drop-email-builder/the-elements-of-design/basic-elements/using-a-hook-in-yaymail.md).

# Using a Hook in YayMail

### Using a Hook in YayMail

<figure><img src="/files/nNooY6Cxqm1P2ne3o5lR" alt=""><figcaption></figcaption></figure>

To use one of the above hooks:

1. **Open** your email template (e.g., Processing Order, Completed Order).
2. **Add a WooCommerce Element** called **"Hook"** and click to edit it.
3. Under the **Hook** dropdown:
   * Select one of the available WooCommerce hooks:\
     `woocommerce_email_before_order_table`,\
     `woocommerce_email_after_order_table.`
4. Customize the padding, background, text color, and other styles.

<figure><img src="/files/LUyekLCtn3SKpXg1LZTm" alt=""><figcaption></figcaption></figure>

Save changes!
