function mk_ajax_import_options() { include_once THEME_DIR . '/demo-importer/engine/content_importer.php'; parse_str($_POST["options"], $options); if (!empty($options['template'])) { $content_importer = new ContentImporter($_POST["options"]); $content_importer->import(); $options['template'] = ''; } }
function abb_import_demo_action() { include_once THEME_DIR . '/demo-importer/content_importer.php'; parse_str($_POST["options"], $options); if (!empty($options['template'])) { $content_importer = new ContentImporter($_POST["options"]); $content_importer->import(); $options['template'] = ''; wp_die(); } }