Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Darko G.

    (@darkog)

    Hey @asimancas

    Looks like this is a typo on the Documentation site.

    The correct argument for meta data would be meta not meta_data.

    Sorry about that.

    Best Regards,
    Darko

    Thread Starter asimancas

    (@asimancas)

    Yes, Darko, I’ve detected that “meta” should be used. Thank for your support.

    I wanted to take advantage of your response to ask if there’s an API that allows to retrieve customer information (associated with a license key), such as first name, last name, email, and company.


    It would be ideal to be able to display this information in programs that use your plugin.


    Thanks again.

    Alfredo

    Plugin Author Darko G.

    (@darkog)

    Hey @asimancas

    There’s no built in route for this. As a workaround you can use the WordPress native route:

    your-site.com/wp-json/wp/v2/users/{the_user_ID}

    The user_id property is the one you will use from the License object. This route is a public WordPress route that shows non-sensitive information about specific user.

    As you can see it shows user name and avatar.

    Best Regards,
    Darko

    Thread Starter asimancas

    (@asimancas)

    Hello Darko,

    Yes, I had considered that option, but I opted to create a filter to modify the plugin’s meta_data response and include the information there.
    Thanks anyway.

    Regards,

    Alfredo

    Plugin Author Darko G.

    (@darkog)

    Actually that’s better! You will save a call.

    Best Regards,
    Darko

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

The topic ‘API to populate meta_data’ is closed to new replies.