Question

Update Wordpress User AFC fields by Zapier

  • 9 March 2023
  • 1 reply
  • 375 views

Hi, I want to update a Wordpress User ACF fileds.

I try to use manage_acf_data but I don’t understand how to write the arguments following in Webhooks zap.

  1. update_field

    This key refers to the update_field() function of ACF: https://www.advancedcustomfields.com/resources/update_field
    {    "update_field":[      {        "selector": "first_custom_key",        "value": "Some custom value"      },      {        "selector": "second_custom_key",        "value": { "some_array_key": "Some array Value" }      }     ]}

    The example value for this key above shows you on how you can add multiple keys and values using the update_field() function. To make it work, you can add an array within the given construct, using the selector key for the post meta key and the value key for the actual value. The example also shows on how you can include an array. To make that work, you can simply create a sub entry for the value instead of a simple string as seen in the second example.

 

Any ideas?


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

1 reply

Userlevel 7
Badge +11

Hey there, @tojo

I’m not familiar with the ACF API but it looks like they have a guide on how to use their API which covers how to construct the webhook (See: WP REST API Integration). Don’t know what type of content you’re wanting to update the fields on but you can see a list of all the available WordPress API endpoints and get further details about them here: https://developer.wordpress.org/rest-api/reference/

I’d also recommend reviewing our Send webhooks in Zaps guide as well when setting this up.
 

Hopefully that’ll help to get you pointed in the right direction. Please do keep us updated on how you get on with this! 🙂