Advanced Order Export for WooCommerce

Order Tags

Using the Order Tags plugin? Need to filter exports by specific tags? Export the tags themselves? Let me tell how via Advanced Order Export for WooCommerce.

What this code does

Two things:

  1. Adds an “Order Tags” column to your export
  2. Adds a filter at the top of the export form. Filter orders by which tags they have.

The complete code


Step 1: Install the code

Copy the entire block. Paste into your theme’s functions.php.

Step 2: What appears

Open Advanced Order Export for WooCommerce. Create or edit an export profile.

At the top of the form, you’ll see:

Order tags: [ ] VIP [ ] Wholesale [ ] International [ ] Rush

Check any combination. Only orders with those tags will export.

In Setup Fields → Others, you’ll find “Order Tags” as a new column.

Step 3: Filter by tags

Check one or more tags. The export only includes orders that have ALL checked tags.

Example: Check “VIP” and “Rush”. Only orders with BOTH tags export.

Step 4: Export the tags

Add “Order Tags” to your exported columns. Each order shows its tags. Comma-separated.

Sample output:

Order #CustomerOrder Tags
1001John SmithVIP, Wholesale
1002Jane DoeRush
1003Bob BrownInternational, Wholesale

When you need this

You tag orders by customer type (VIP, Wholesale, Retail). Need to export only wholesale orders.

You tag orders by urgency (Rush, Standard). Want to process rush orders separately.

You tag orders by region (Domestic, International). Need regional reports.

Common mistake

The code expects the Order Tags plugin to be active. Taxonomy wcot_order_tag must exist.

No tags created yet? Go create some tags in WordPress admin. Assign them to orders. Then test the export.

Empty export?

Checked tags but got zero orders? Two possibilities:

  1. No orders have those tags
  2. You checked multiple tags, but no order has ALL of them

Try checking just one tag first. Verify it works.

Pro tip

Want orders with ANY checked tag (not ALL)? Change the SQL logic. Contact plugin support for that modification.

Need to see tag IDs? Look in the URL when editing a tag. Or query the database.

Real talk

Order Tags plugin stores tags as a custom taxonomy. Not regular post meta. That’s why normal exports miss them.

This code bridges that gap. Your tags become filterable and exportable.

Perfect for stores that categorize orders beyond standard statuses. Your team can finally export by “VIP” or “Wholesale” with one click.

Have questions? Please submit a support request. We're always happy to help!

Advanced Order Export
for WooCommerce
PRO

From $30
Buy
✓ 30-day money-back guarantee