• Resolved mattheoh

    (@mattheoh)


    Hi,
    I need to do an export with all BP fields and one User Meta.
    It’s a kind of mess in user meta (a lot are listed, and not usefull… but I searched, and it doesn’t see to have an automatci solution to clean those unused … by the way it’s not the purpose of my post ^^)

    To make easier, the export for one of my administrator, I thought about automatized some kind of exports. I know you already put the option, to save different export models, but the problem is , I need to do a different export each time a new user meta is added. (And I have nearly 100 user metas purposed in the list and it’s growing – so that’s not very convinient)

    Would there be a way to make it through an url for example ?
    I mean (for example, something like that) : /wp-admin/users.php?page=export-user-data&bp-fields=all&user-meta=meta_of_the_day

    If it’s not possible, do you think about someting, to have an easier way to make export with all these metas.

    If nothing is possible, is there a possibility to order metas in a different way (by last added, alphabetically… cause actually I don’t understant the order)

    thanks per advance

    https://www.ads-software.com/plugins/export-user-data/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author qstudio

    (@qlstudio)

    Hi,

    Thanks for the many requests ??

    However, I have to say that we have no plans at the moment to invest a lot of time in adding new features and options – the plugins already has far more options that was originally conceived.

    There is a chance that some of the features that you requested will one day make it into a “pro” version – the reason being that this type of functionality takes a long time to develop and also to support – and we cannot afford to invest more time at present.

    If you have a good understanding of PHP, it is also possible to take on this development yourself – based on the method used to save export options – converting $_POST requests to $_GET requests to allow the parameters to be passed in the querystring.

    Good luck ??

    Thread Starter mattheoh

    (@mattheoh)

    First time someone thanks me for asking questions (nearly spamming !) ??
    Tanks to you for your fast answer and your pieces of advice about my needs.
    I will look forward into it.

    I obviously hope to see a future pro version one day, cause your plugin is the most complete, and you deserve to earn some money for all your efforts.

    Last question, could you tell me, how the meta user are sorted in the list ? it doesn’t seem to be by ID…
    Can I change this order in the code ?

    Thx again

    Plugin Author qstudio

    (@qlstudio)

    We don’t use any ordering – so it will use the defaults defined in get_users – which users WP_User_Query – https://codex.www.ads-software.com/Class_Reference/WP_User_Query#Order_.26_Orderby_Parameters

    Thread Starter mattheoh

    (@mattheoh)

    Thanks !

    I added : ORDER BY $wpdb->usermeta.meta_key ASC line 1279 of export-user-data.php, like that :

    $meta_keys = $wpdb->get_results( "SELECT distinct(meta_key) FROM $wpdb->usermeta ORDER BY $wpdb->usermeta.meta_key ASC" );

    and seems to do the trick – my meta are in alphabetical order, which is a lot easier to find the good one ?? !
    thanks again.
    See ya

    PS : a nice option in a future pro version, would be to add the possibility to enter some conditions on the exports.
    for example : export only the user that have meta_1 = yes (don’t know if it’s clear :-/ cause of my Frenglish :-p)

    Plugin Author qstudio

    (@qlstudio)

    Thanks again for the ideas.. I hope one day we’ll have time to think about using them:)

    Good luck!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Start export with an URL’ is closed to new replies.