Пример #1
0
function jeg_end_import()
{
    // set menu location
    jeg_set_menu_location();
    jeg_create_notice("Finish Import Menu Location");
    // set widget
    jeg_set_widget();
    jeg_create_notice("Finish Import Widget");
    // import revolution slider
    jeg_import_revolution();
    jeg_create_notice("Finish Import Revolution Slider");
    // import panel
    jeg_panel_import();
    jeg_create_notice("Finish Import Theme Panel Setting");
    // switch permalink setting to day & name
    global $wp_rewrite;
    $wp_rewrite->set_permalink_structure("/%year%/%monthnum%/%day%/%postname%/");
    echo "<h3>Congratulation, Import Finished!</h3>";
}
function jeg_end_import()
{
    // set menu location
    jeg_set_menu_location();
    // set widget
    jeg_set_widget();
    // import revolution slider
    jeg_import_revolution();
    // import panel
    jeg_panel_import();
}