Skip to main content
Cookbook Content ACF

Check ACF’s AI Abilities with AI

See whether ACF's abilities are on and exactly which field groups, post types and taxonomies they reach, without changing anything.

Difficulty Beginner
Time ~5 min

Prerequisites

A site connected to WPVibe running Advanced Custom Fields 6.8.12 or newer (tested on 6.8.12, the free version) on WordPress 6.9 or newer.

The prompt
My WordPress site uses Advanced Custom Fields (ACF). Check that ACF's AI abilities are on and show me what they can reach. Don't change anything.

1. Run GET /wp/v2/plugins?search=advanced-custom-fields with fields set to plugin,name,version,status, and read ACF's version and status. If ACF is not installed or not active, stop and tell me. If its version is older than 6.8.12, stop and tell me to update ACF first, and that after the update every field group, post type and taxonomy starts with abilities on, because choices made in older versions are not carried over.
2. Run discover_abilities with category acf-field-management. If acf/field-groups is not there, tell me ACF's abilities are off and that I can switch them on in ACF, Settings, Features tab, AI & GEO, Abilities API, then Save. If that switch says Managed via code, a line of code in my theme or a plugin sets it, and only a change to that code turns it on. ACF's abilities also need WordPress 6.9 or newer. Then stop.
3. Run acf/field-groups. If the result is cut, run it again with max_length 100000 and tell me if it is still cut. For each field group, list its title, its fields (label and type), and whether show_in_rest is on: when it is off, its field values can't be read or written through ACF's post and term abilities.
4. Run acf/custom-post-types and acf/custom-taxonomies with no input, and discover_abilities with category wordpress-content-discovery. List each ACF post type and taxonomy with the acf/ abilities it has (list, create, view, update, delete). These lists show only what ACF's abilities reach, so ask me whether any post type or taxonomy I made in ACF is missing: it is then switched off (Active) in ACF, or Enable Abilities is off for it. For one that is listed but has no abilities, the causes are: Show In REST API is off for it, its key becomes the same as another one's once underscores turn into hyphens (only the first gets abilities), or a taxonomy shares its REST base with a post type. If acf/register-custom-post-type is missing too, Post Types & Taxonomies UI is off in ACF, Settings, Features tab, Interface.
5. Show this as one short table, then tell me how to leave anything out: for a field group, open it in ACF, Field Groups, go to its ACF AI tab and switch off Enable Abilities for Field Data; for a post type or taxonomy, open it in ACF, Post Types or ACF, Taxonomies, switch on Advanced Configuration in its Basic Settings, then in its ACF AI tab switch off Enable Abilities for Posts (or for Terms); then save. To switch off all of ACF's abilities, use the switch in step 2. Tell me this decides what ACF's abilities cover, not who can see the content: WPVibe can still reach it through the WordPress REST API.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Check ACF’s AI Abilities with AI” recipe from the WPVibe cookbook on my connected site.

ACF 6.8.12 switched its AI abilities on for every site on WordPress 6.9 or newer, and for every field group, post type and taxonomy on it, including the ones you built before the update. Choices made in earlier versions were not carried over, so what an AI can reach may not be what you picked.

The AI checks your ACF version and whether its abilities are on. If they are off, it tells you where to switch them on. If they are on, it lists every field group, post type and taxonomy its abilities can reach, with their fields, and which ones can have their field values read and written. It changes nothing.

Switch off anything you want left out in its ACF AI tab (for a post type or taxonomy, switch on Advanced Configuration first to see that tab), or all of ACF’s abilities in ACF’s settings. Enable Abilities decides what ACF’s abilities cover; it does not lock the content, which WPVibe can still reach through the WordPress REST API. If you followed an earlier version of this recipe, you may have a WPCode snippet named Turn on ACF AI abilities: from ACF 6.8.12 it does nothing, so you can deactivate it in WPCode.

Outcome

You know whether ACF's abilities are on, and which field groups, post types and taxonomies they reach, with nothing changed.