Theme Authors – Auto Import Slider Demos

If you're packaging the slider with your theme for sale, and would like to auto-import sliders along with your theme demos, here's a snippet you can use to to this.
The code to be added to a separate php file and you just need to make a request to that file.