function auto_import($args)
{
    $defaults = array('file' => '', 'map_user_id' => 0);
    $args = wp_parse_args($args, $defaults);
    $autoimport = new Auto_Importer($args);
    $autoimport->do_import();
}
Ejemplo n.º 2
0
function auto_import($args, $att)
{
    $defaults = array('file' => '', 'map_user_id' => 0);
    $args = wp_parse_args($args, $defaults);
    $autoimport = new Auto_Importer($args);
    if ($att == '0') {
        $autoimport->do_import(false);
    } else {
        $autoimport->do_import(true);
    }
}