function cmo_import_tc_settings_ajax()
{
    cmo_import_tc_settings(get_file_path('tc-settings.json'));
    ajax_finish(true, "done");
}
Exemplo n.º 2
0
function cmo_import_customizer_settings()
{
    if ($_FILES['tc_settings_file']['error'] > 0) {
        wp_die('An import error occured. Please try again.');
    } else {
        cmo_import_tc_settings($_FILES['tc_settings_file']['tmp_name']);
    }
}