Add a custom folder on Plugin activation




Screencasts – WP Theme Tutorial show

Summary: Recently I needed to do a custom export of WooCommerce orders so we could send them to an external service. The external service could already read orders formatted in an XML file, so all I needed to do was get the WooCommerce orders exported in the XML format and put in a directory that could be accessed by the external service. The first part of that was creating a new place to store files in WooCommerce which meant I needed to create a new folder when my plugin was activated. Today we’ll take a look at how to add a folder on plugin activation. Plugin Skeleton The first thing we need is a plugin skeleton.