/**
  * Import All In One SEO settings
  */
 public function __construct()
 {
     parent::__construct();
     $this->aioseo_options = get_option('aioseop_options');
     $this->import_metas();
     $this->import_ga();
 }
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->import_home();
     $this->import_option('seo_woo_single_layout', 'post');
     $this->import_option('seo_woo_page_layout', 'page');
     $this->import_archive_option();
     $this->import_custom_values('seo_woo_meta_home_desc', 'metadesc-home-wpseo');
     $this->import_custom_values('seo_woo_meta_home_key', 'metakey-home-wpseo');
     $this->import_metas();
     update_option('YMBESEO_titles', $this->options);
     $this->set_msg(__('WooThemes SEO framework settings & data successfully imported.', 'ymbeseo'));
 }
예제 #3
0
        $import = new YMBESEO_Import_AIOSEO($replace);
    }
    if (isset($_POST['wpseo']['importheadspace'])) {
        $import = new YMBESEO_Import_External($replace);
        $import->import_headspace();
    }
    if (isset($_POST['wpseo']['importrobotsmeta']) || isset($_GET['importrobotsmeta'])) {
        $import = new YMBESEO_Import_External($replace);
        $import->import_robots_meta();
    }
    if (isset($_POST['wpseo']['importrssfooter'])) {
        $import = new YMBESEO_Import_External($replace);
        $import->import_rss_footer();
    }
    if (isset($_POST['wpseo']['importbreadcrumbs'])) {
        $import = new YMBESEO_Import_External($replace);
        $import->import_yoast_breadcrumbs();
    }
    // Allow custom import actions.
    do_action('YMBESEO_handle_import');
}
if (isset($_FILES['settings_import_file'])) {
    check_admin_referer('wpseo-import-file');
    $import = new YMBESEO_Import();
}
if (isset($import)) {
    /**
     * Allow customization of import&export message
     * @api  string  $msg  The message.
     */
    $msg = apply_filters('YMBESEO_import_message', $import->msg);