Slider Revolution WP
09.27.2016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
$absolute_path = __FILE__; $path_to_file = explode( 'wp-content', $absolute_path ); $path_to_wp = $path_to_file[0]; require_once( $path_to_wp.'/wp-load.php' ); require_once( $path_to_wp.'/wp-includes/functions.php'); echo ' Import Files loaded'; echo ' Import Slider'; $slider_array = array(get_template_directory()."path/to/slider-export.zip"); $slider = new RevSlider(); foreach($slider_array as $filepath){ $slider->importSliderFromPost(true,true,$filepath); } echo ' Slider processed'; |
“Proof of Concept” plugin that demonstrates auto-import functionality:
https://sharedimages.themepunch.tools/slider-revolution-auto-importer.zip