• Resolved nikeri

    (@nikeri)


    Hi,

    Been trying to remove the customer email from our packing slips/receipts, but i cant get it to disappear.

    function example_removed_email( $fields ) {
    unset( $fields[‘customer_email’] );
    return $fields;
    }
    add_filter( ‘wcdn_order_info_fields’, ‘example_removed_email’ );

    Is this correct from FAQ? What is the field that should be used? (“customer_email”)

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Upendra Kapse

    (@wpupen)

    Hello,

    To remove the email address field from the Invoice please use this code snippet:

    /**
     * Add this code snippet in functions.php file of your currently active theme.
     * An example that removes the 'Email' field.
     */
    function example_removed_customer_email( $fields ) {
        unset( $fields['billing_email'] );
        return $fields;
    }
    add_filter( 'wcdn_order_info_fields', 'example_removed_customer_email' );

    Kind Regards,
    Upendra

    Thread Starter nikeri

    (@nikeri)

    Thanks, worked like a charm!

    Plugin Support Upendra Kapse

    (@wpupen)

    Glad to know it worked well ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove email from invoice’ is closed to new replies.