Using Hooks, Filters, and Actions with WP All Import and WP All Export
WordPress makes heavy use of filters and actions to help make it extensible. Collectively called hooks, filters and actions do the heavy lifting to allow WordPress to support plugins and themes. WP All Import and WP All Export have their own set of filters and actions that allow for modifying how each import or export works.
How Do Actions Work?
Actions are a simple way for custom code to be called automatically when some action/event takes place. For example, say an order is made in WooCommerce, and you want to trigger an alert at a remote API endpoint. You could call your code with the appropriate hook to make that possible.
Here's the full explanation of Actions in WordPress: https://developer.wordpress.org/plugins/hooks/actions/
How Do Filters Work?
In simplest terms, filters are actions that expect a piece of data to be returned, which your code can then manipulate before returning the data for further processing.
Here's the WordPress reference for Filters: https://developer.wordpress.org/plugins/hooks/filters/
What Else Should I Know?
Most of the filters and actions included in WP All Import can be used directly in the Function Editor (found in the Settings). For those that can't, we will note it in our Action Reference and any example snippets, as appropriate.
Related Docs
This is our API or Action Reference for both WP All Import and WP All Export.
Available code snippet examples to use with WP All Import or WP All Export.
This documentation explains how to use custom PHP code in WP All Import.
This documentation explains how to use custom PHP code in WP All Export.