• Resolved Imagefaysaljadoon66

    (@faysaljadoon66)


    Hi,
    I am using WP REST API for exposing data in Mobile app. But there is an issue in requesting? the only things that is stored in database are just username, firstname, lastname, email and password. The meta fields are not stored. Please help me how to store meta fields.
    the data I am requesting is.
    {
    “username”:”abc”,
    “firstname”:”xyx”,
    “lastname”:”fghj”,
    “email”:”[email protected],
    “abc”: “fghjk”,
    }

    All the fields are stored but the only field “abc” is not stored.
    How to store this field.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Where are you getting the meta fields from? If you’d added them yourself you could do this by setting ‘show_in_rest’ => true when registering a new meta key.

    Cheers,
    Freddie

    Thread Starter Imagefaysaljadoon66

    (@faysaljadoon66)

    Its fine but one another issue when I am sending this meta is in array its stores in different row how can I send it in serialized form.

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

The topic ‘Creating user with custom meta field?’ is closed to new replies.