1. Home
  2. Knowledge Base
  3. Easy Digital Downloads EU VAT
  4. Developer Documentation

Where is the VAT number stored in the database

The Easy Digital Downloads EU VAT plugin stores the VAT number in a database field called _edd_payment_vat_number in the wp_postmeta table.

You can use this when importing or exporting customer orders and VAT numbers.

To fetch the VAT number from the database, you would use:

$vat_number = get_post_meta( $payment->ID, '_edd_payment_vat_number', true );

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.