This tutorial will show you how to create a custom WordPress Plugin that extends the Store Exporter Deluxe Plugin without making changes to your Theme or Child Theme’s functions.php file. This solution is strongly recommended where a Child Theme is not in use.
The action within this tutorial removes the first part of the Order Items: Product Name export column’s contents where this store has setup their Product Name to have a ‘/’ (forward slash) to separate Product Name details (e.g. Store Exporter Deluxe / WooCommerce where only Store Exporter Deluxe is required). You can replace the action within this Custom Add-on Plugin with any Code Snippet available on this website.
The code snippet
View CodeGeneral instructions
Here’s how we do it:
- Connect to your WordPress site using your preferred FTP/SFTP manager
- Navigate to the /wp-content/plugins/… directory
- Create a new directory named ‘woocommerce-store-exporter-deluxe-custom’
- Open the ‘woocommerce-store-exporter-deluxe-custom’ directory
- Create a new file named ‘custom.php’
- Edit the ‘custom.php’ file with your preferred file editor
- Paste the contents of the code snippet at the top of this tutorial
- Save the modified file and upload the file changes
- Open the WordPress Administration of your WordPress site
- Open the Plugins screen from the Plugins sidebar menu
- Scroll down to ‘WooCommerce – Store Exporter Deluxe (Custom Add-on)’
- Click Activate to activate this custom Plugin add-on
That’s it! The code snippet placed within the custom Plugin add-on will now be active and applied to future exports; give it a try! You can add/remove code snippets from this file whenever you like! 🙂