Best answer

Updating Wordpress User

  • 25 October 2021
  • 3 replies
  • 487 views

We manage a lot of administrative tasks in Airtable. Some of the tasks we manage require us to update  a user account in Wordpress. 

I looked at the wordpress actions and I don’t see anything for “Update User” the closest I found was “Create User” if I use this option will it create a duplicate user or will it update the user instead. I guess I’m asking is the “Create User” action actually “Create/Update User”? If not is there a way to update user information from Airtable to Wordpress?

icon

Best answer by Troy Tessalone 25 October 2021, 23:41

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +14

Hi @CGCS 

You’d likely have to use the WordPress API to update a User: https://developer.wordpress.org/rest-api/reference/users/#update-a-user

App APIs can be used in Code step or Webhook steps.

Code: https://zapier.com/apps/code/help

Webhook: https://zapier.com/apps/webhook/integrations

Thanks for the quick reply. I’ll check out the tutorials.

I’ve never used the code step before, but looking at the API I see there are only predefined fields; would custom fields fall under “Meta”?

Userlevel 7
Badge +14

Hi @CGCS 

Yes, I believe Meta contains custom fields: https://developer.wordpress.org/reference/functions/update_user_meta/

 

If you need help configuring app APIs, then consider hiring a Zapier Expert: https://experts.zapier.com/