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:

functions.php
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.

  1. Advanced Custom Fields: Widget icon Advanced Custom Fields: Widget100+ installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) includes/class-acf-widget.php:109
  2. StoryChief ACF icon StoryChief ACF100+ installs apply_filters( 'acf/field_group/get_options', array(), $acf_field_group->ID ) class.storychief-acf-admin.php:164
  3. Dooodl icon Dooodl50+ installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) includes/libs/advanced-custom-fields/core/api.php:1270
  4. Fancy Grid Portfolio icon Fancy Grid Portfolio20+ installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) lib/advanced-custom-fields/core/api.php:1168
  5. Simple Content Adder icon Simple Content Adder20+ installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) lib/advanced-custom-fields/core/api.php:1270
  6. TSA Commerce icon TSA Commerce20+ installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) vendors/acf/core/api.php:1270
  7. LogicalDOC WordPress Explorer icon LogicalDOC WordPress Explorer10+ installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) advanced-custom-fields/core/api.php:1270
  8. Simply Documents icon Simply Documents10+ installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) lib/advanced-custom-fields/core/api.php:1270
  9. Church Options icon Church Options10+ installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) lib/advanced-custom-fields/core/api.php:1270
  10. Quick Recommend icon Quick RecommendFewer than 10 installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) lib/advanced-custom-fields/core/api.php:1270
  11. ASD Feature Maps icon ASD Feature MapsFewer than 10 installs apply_filters( 'acf/field_group/get_options', array(), $acf['id'] ) includes/advanced-custom-fields/core/api.php:1270
  12. Flaunt Your Clients icon 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.