Last active
November 1, 2015 18:58
-
-
Save pbogdan/be6b0daa900ffade13bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once "wp-load.php"; | |
require_once "wp-admin/includes/admin.php"; | |
require_once "wp-content/themes/Avada/framework/plugins/importer/importer.php"; | |
// needs to be a valid admin user id, get the users/ids with $ wp user list | |
wp_set_current_user(1); | |
// check wp-content/themes/Avada/framework/plugins/importer/importer.php for | |
// valid values of demo_type | |
$_POST['demo_type'] = 'classic'; | |
fusion_importer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment