WordPress filter hook

acf/field_group/get_location

Fired by 12 WordPress plugins, running on 340+ sites between them.

How to use acf/field_group/get_location

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_location', function( $value, $ID ) {
	// Change $value here.
	return $value;
}, 10, 2 );

Argument names come from Dooodl'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_location

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

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.