Wordpress user meta data

I have some custom fields in my Wordpress user data - in particular I have one called ‘text_crm_user’

When I get the user data with the Wordpress node I cannot see any of these fields. I have two entries:

“meta” - which is empty
“woocommerce_meta” - which contains data

How do I pull in any additional information from the user profiles?


Found the answer to that - you have to manually register the fields into the API within Wordpress:

register_meta( 'user', 'your_meta_key_here', [ 'show_in_rest' => true ] );

This lets me pull the existng data into the Wordpress node when I GET a user!

It doesn’t show them in the Update User dialog - the Add Field only shows the standard fields. How can I add the new meta fields here?


That is sadly currently not posible. You can make a feature request. In the meantime, you can use the HTTP request to update the metadata.

Hey @seank1968!

Were you able to resolve this using the HTTP Request node? Let us know if you need help :slight_smile:


Just trying it now.

I can update the standard fields - email, nickname etc by using POST and adding the field name and new value with the Add Parameter option.

But the additional fields I have added don’t update - no error is returned.

For example, I have a field called text_crm_user - if I enter that as the name and a value, for example ‘qwerty’ as a new parameter - the node executes but the field doesn;t upidate.

You probably have to send the data as:

   meta: {
       text_crm_user: 'data'

Ah ok - I’ll try that when I’m back in the office tomorrow!

Sure, let us know.

Hey @seank1968,

Did @RicardoE105’s solution work for you?