WPGraphQL for ACF 3.2.1 has 5 actions and 19 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WPGraphQL for ACF fires an action
add_action( 'wpgraphql/acf/init', function() {
// Your code runs here.
}, 10, 1 );
// Change a value WPGraphQL for ACF is about to use
add_filter( 'wpgraphql/acf/field_type_config', function( $_config, $object ) {
// Change $_config here.
return $_config;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filter the config before setting it on the class */ apply_filters( 'wpgraphql/acf/field_type_config', $_config, $this ); -
/** * If external code has filtered this to return anything other than null, use * the filtered type instead of the default */ apply_filters( 'wpgraphql/acf/field_type_resolve_type', null, $field_config, $acf_field ); -
/** * If external code has filtered this to return anything other than null, use * the filtered type instead of the default */ apply_filters( 'wpgraphql/acf/field_type_resolver', null, $root, $args, $context, $info, $field_type, $field_config, $acf_field ); -
/** * Filter the value before returning */ apply_filters( 'wpgraphql/acf/field_value', $prepared_value, $field_config, $root, $node_id ); -
/** * Filter the graphql_field_config for an ACF Field */ apply_filters( 'wpgraphql/acf/get_graphql_field_config', $field_config, $this ); -
/** * If a value is returned from this filter, */ apply_filters( 'wpgraphql/acf/pre_get_node_acf_id', null, $node ); -
/** * Filter the field value before resolving. */ apply_filters( 'wpgraphql/acf/pre_resolve_acf_field', null, $root, $node_id, $field_config, $should_format_value, $field_key ); -
/** * Filter the supported fields */ apply_filters( 'wpgraphql/acf/supported_field_types', $registered_field_names ); -
/** * Filters whether block markup in a WYSIWYG field's value is rendered. */ apply_filters( 'wpgraphql/acf/wysiwyg/render_blocks', true, $value, $acf_field_config, $root, $node_id ); -
apply_filters( 'acf_the_content', $value ); -
apply_filters( 'acf/format_value', $value, $node_id, $field_config, false ); -
apply_filters( 'wpgraphql/acf/excluded_admin_field_settings', $this->excluded_admin_field_settings ); -
apply_filters( 'wpgraphql/acf/field_type_admin_settings', $admin_fields ); -
apply_filters( 'wpgraphql/acf/field_type_default_admin_settings', $default_admin_settings ); -
apply_filters( 'wpgraphql/acf/get_all_possible_types/interfaces', $interfaces ); -
apply_filters( 'wpgraphql/acf/get_registered_field_types', $this->registered_field_types ); -
do_action( 'wpgraphql/acf/init' ); -
apply_filters( 'wpgraphql/acf/is_acfe_active', $is_active ); -
do_action( 'wpgraphql/acf/match_location_rule', $field_group_name, $param, $operator, $value, $this ); -
apply_filters( 'wpgraphql/acf/options_page/show_in_graphql', false, $option_page ); -
do_action( 'wpgraphql/acf/register_field_types', $this ); -
do_action( 'wpgraphql/acf/registry_init', $this ); -
apply_filters( 'wpgraphql/acf/should_field_group_show_in_graphql', $should, $acf_field_group ); -
do_action( 'wpgraphql/acf/type_registry/init', $this );
Generated from WPGraphQL for ACF's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: