• Resolved X-Raym

    (@x-raym)


    Hi !

    I just write a small plugin which create a custom user meta at wp_login.

    This meta was excluded by defaut by amr users, with this error message.

    Extracts the current distinct user meta keys used - Sample data MUST exist!

    Is that because not all users have logged yet once or is it because the way I set my user meta in my plugin is wrong ?

    Note that once I de-excluded it, it works fine, so it is not a real problem, it is more a question about “did I make something wrong”. 🙂

    Cheers !

    https://wordpress.org/plugins/amr-users/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author anmari

    (@anmari)

    Hi X-Raym,

    It only excludes some meta that are usually in wp systems and that generally one would not expect people to use (and also some plugins generate extra fields – like the ACF plugin generates an ‘_field’ for every ‘field’, so if it finds this it will exclude the non-useful one)
    You do not say what you called your user meta – perhaps the name is similar to some wordpress user meta, or perhaps you had some with ‘_name’ and with ‘name’ and it thought it was an ACF field?

    Thread Starter X-Raym

    (@x-raym)

    Hi !

    Thank you for the answer !

    My user-meta is simply called “log_last_login”, where “log” is the prefix for the other metas I created (called within clear_auth_cookies hook)…

    If I understand well, if I dont want them to be excluded, I just have to find names that will pass through the filter ?

    Thanks again for your support 😛

    Plugin Author anmari

    (@anmari)

    actuallly it is only the first time that it proposes a set of excluded meta data (becuase there can be a lot of non report worthy data). Once you have unexcluded the field you want and saved, it should stay that way.

    That name should have been fine – are you 100% sure you didn’t have a underscore version ‘_log_last_login’ somewhere too ?

    Thread Starter X-Raym

    (@x-raym)

    I am totally sure for the meta name 🙂

    But well, if you say it’s ok, then I think there is no real problem.

    I mark this as resolved !

    Thanks for your support !

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Excluded Meta Keys – Sample Data Must Exist’ is closed to new replies.