Advanced Order Export for WooCommerce

Common Note

This guide provides a high-level overview of the developer resources available to you. Whether you need to add custom fields, modify the order selection logic, control user access, or integrate with external APIs via HTTP POST, you’ll find the tools and documentation you need here.

Where to Place Your Custom Code

Before diving into individual examples, it’s crucial to understand where your custom code should live. The plugin offers two primary locations for custom PHP code, and choosing the right one ensures your customisations remain maintainable and survive updates.

Location

Best Used For

Misc Settings → Custom PHP code (textarea)

Most code examples except those in the “Add Fields” section. This method keeps your customisation tied directly to a specific export job and is the safest, most maintainable approach.

Code Snippets plugin or functions.php

Code from the “Add Fields” section. I strongly recommend using the free Code Snippets pluginover editing functions.php – it’s safer, easier to manage, and won’t be lost when you update your theme.

Users of the Pro version should set the snippet mode to “Run snippet everywhere” if they use scheduled jobs. This ensures your custom code executes in the background cron environment where scheduled exports run.

Understanding Hooks and Filters

The plugin provides a comprehensive system of hooks and filters that allow you to modify virtually every aspect of the export process. Here’s what you need to know:

  • Actions allow you to trigger custom code at specific points in the export lifecycle.
  • Filters allow you to modify data before it is processed or output.

The naming convention is straightforward: most hooks follow the pattern woe_* and wc_order_export_*. For a complete reference, including all available hooks and their parameters, please refer to the dedicated Hooks/Filters documentation article.

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