• So,,, I am probably in the wrong forum because I am new to WP.

    I am trying to edit the order details email (and incidentally using Motors theme which already has some custom editing).

    I “think” I don’t need much specificity, I just the line of code to pull post meta and echo it out.
    I have written what seems like a million lines of code but can’t make it happen.

    • This topic was modified 3 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There is likely a WooCommerce specific filter hook you could use to alter email content. I recommend asking in the WooCommerce dedicated support forum about how to accomplish this.
    https://wordpress.org/support/plugin/woocommerce/

    There is a generic “wp_mail” filter that could in theory be used, but it’s not ideal. Your callback code would need to be able to discern an order details message out of all other messages. It’d be better to use a specific filter hook intended for the purpose.

Viewing 1 replies (of 1 total)

The topic ‘Pulling Post Meta for Woocommerce Email’ is closed to new replies.