WordPress filter hook
acf/field_group/get_options
Fired by 12 WordPress plugins, running on 340+ sites between them.
How to use acf/field_group/get_options
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'acf/field_group/get_options', function( $value, $acf ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from Advanced Custom Fields: Widget's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
12 plugins that fire acf/field_group/get_options
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Advanced Custom Fields: Widget100+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )includes/class-acf-widget.php:109 -
StoryChief ACF100+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf_field_group->ID )class.storychief-acf-admin.php:164 -
Dooodl50+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )includes/libs/advanced-custom-fields/core/api.php:1270 -
Fancy Grid Portfolio20+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )lib/advanced-custom-fields/core/api.php:1168 -
Simple Content Adder20+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )lib/advanced-custom-fields/core/api.php:1270 -
TSA Commerce20+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )vendors/acf/core/api.php:1270 -
LogicalDOC WordPress Explorer10+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )advanced-custom-fields/core/api.php:1270 -
Simply Documents10+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )lib/advanced-custom-fields/core/api.php:1270 -
Church Options10+ installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )lib/advanced-custom-fields/core/api.php:1270 -
Quick RecommendFewer than 10 installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )lib/advanced-custom-fields/core/api.php:1270 -
ASD Feature MapsFewer than 10 installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )includes/advanced-custom-fields/core/api.php:1270 -
Flaunt Your ClientsFewer than 10 installs
apply_filters( 'acf/field_group/get_options', array(), $acf['id'] )includes/advanced-custom-fields/core/api.php:1261
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.