This quick tutorial will show you how you can add custom payment meta information to the admin sales notification email. It will also work for any data already in the payment meta array.

If you followed this tutorial, you will have created custom fields for your checkout form. The following code snippet assumes that you also used the same field names, edd_phone and edd_company. If you named your fields something different, simply update the names in the function below.

Paste the following function into your child theme’s functions.php or a custom plugin.

2 comments

  1. Hi,
    great that you added this tutorial!
    When I tested it, it just gave me blank fields in the admin’s email like this:

    Hallo

    Eine neue Downloads Bestellung wurde getätigt.

    Downloads verkauft:

    * Trader-Paket –
    o DOWNLOAD LINK
    — Laden Sie sich jetzt völlig kostenlos unser für Sie zusammengestelltes Trader-Paket herunter; inkl. eines 50,- EUR Gutscheins für das TraderHotel.

    Gekauft von: niklas
    Betrag: EUR 0.00
    Zahlungsmethode: Test-Zahlung

    Danke!

    Additional Information
    Company:
    Phone:

Comments are closed.