admin_url('admin-ajax.php'), 'themeurl' => get_template_directory_uri(), 'theme_options_version' => $theme_options_version, 'btn_pro' => $btn_pro, 'btn_documentation' => $btn_documentation, 'btn_forum' => $btn_forum, 'loading' => $loading, 'complete' => $complete, 'error' => $error, 'import_options' =>$import_options, 'transfer' =>$transfer, ) ); } } add_action( 'admin_enqueue_scripts', 'alchem_customize_importer_js' ); add_action( 'wp_ajax_alchem_otpions_customize', 'alchem_otpions_customize' ); add_action( 'wp_ajax_nopriv_alchem_otpions_customize', 'alchem_otpions_customize' ); function alchem_otpions_customize(){ $themename = alchem_get_textdomain(); $alchem_options = get_option($themename); foreach( $alchem_options as $option_name => $option_value ){ set_theme_mod ( 'alchem_'.$option_name, $option_value ); } set_theme_mod ( 'alchem_upgrade_from_options', '1' ); }