Skip to content

Update ACF Taxonomy-Term Fields with AI ​

Use wp_acf_update_term_fields to update Advanced Custom Fields (ACF) or Secure Custom Fields values on existing taxonomy terms, such as categories, tags, product categories, and custom taxonomy terms.

In this article

Before you start ​

Activate Advanced Custom Fields or Secure Custom Fields and assign the field group to the term. In Easy MCP AI > Tools, search for wp_acf_update_term_fields, enable it, and click Save changes. The connection must allow the tool, and its WordPress user must have permission to edit the target term.

The taxonomy (the type of term, such as a category or tag) must be available through the WordPress REST API. For this tool, the assigned field group does not need Show in REST API enabled. This differs from generic REST access to custom fields.

Update the fields ​

Ask your AI client to call wp_acf_update_term_fields with these required arguments:

ArgumentValue
term_idThe integer ID of the existing term to update.
taxonomyThe term's taxonomy name, such as category or product_cat, or its REST base, such as categories.
fieldsAn object mapping existing, assigned field names or field keys to their new values.

For example:

json
{
  "term_id": 123,
  "taxonomy": "category",
  "fields": {
    "intro": "New introduction"
  }
}

Replace 123 with your existing category's ID and intro with the actual name or key of an assigned field. Fields you omit keep their current values. Group, Repeater, and Flexible Content values can use sub-field names. Sending a Repeater or Flexible Content value replaces all of its rows, so include every row you want to retain.

Check the result ​

Inspect fields_ignored and any notice in the response for fields that were not saved. The tool changes field values, not the term's name, slug, or description. With WordPress's standard term controller, it avoids resaving those term properties; a plugin's custom controller may behave differently.

Was this helpful?