WordPress filter hook

acf/is_field_group_key

Fired by 21 WordPress plugins, running on 620+ sites between them.

β€œFilters whether the $id is a field group key.”

How to use acf/is_field_group_key

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

Argument names come from WPScreens's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

21 plugins that fire acf/is_field_group_key

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WPScreens icon WPScreens300+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:186
  2. WP Related Posts and Products (WRI) icon WP Related Posts and Products (WRI)100+ installs apply_filters( 'acf/is_field_group_key', false, $id ) advanced-custom-fields/includes/acf-field-group-functions.php:186
  3. Flexblocks icon Flexblocks80+ installs apply_filters( 'acf/is_field_group_key', false, $id ) inc/acf/includes/acf-field-group-functions.php:188
  4. Social Influencer Links icon Social Influencer Links20+ installs apply_filters( 'acf/is_field_group_key', false, $id ) lib/acf/includes/acf-field-group-functions.php:186
  5. Tuxedo Importer icon Tuxedo Importer20+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:188
  6. Accessibility Statement icon Accessibility Statement20+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:188
  7. Rexpansive Builder icon Rexpansive Builder10+ installs apply_filters( 'acf/is_field_group_key', false, $id ) admin/lib/acf/advanced-custom-fields/includes/acf-field-group-functions.php:188
  8. Megabits Control Gastos icon Megabits Control Gastos10+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:188
  9. WoWpi Guild icon WoWpi Guild10+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:186
  10. Proshots For WooCommerce icon Proshots For WooCommerce10+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:186
  11. Important Dates Dashboard Widget icon Important Dates Dashboard Widget10+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:188
  12. Coronavirus (COVID-19) Live Update Popup icon Coronavirus (COVID-19) Live Update Popup10+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:186
  13. Realty Pack Core icon Realty Pack Core10+ installs apply_filters( 'acf/is_field_group_key', false, $id ) app/acf/includes/acf-field-group-functions.php:187
  14. Mufasa 🦁 Slider icon Mufasa 🦁 Slider10+ installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:186
  15. Simple KMDG Resource Center icon Simple KMDG Resource CenterFewer than 10 installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/advanced-custom-fields/includes/acf-field-group-functions.php:186
  16. Admin Notes WP icon Admin Notes WPFewer than 10 installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/advanced-custom-fields/includes/acf-field-group-functions.php:186
  17. Ninety in Ninety icon Ninety in NinetyFewer than 10 installs apply_filters( 'acf/is_field_group_key', false, $id ) inc/acf/includes/acf-field-group-functions.php:186
  18. Admin User Control icon Admin User ControlFewer than 10 installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:186
  19. Work Time Allocator icon Work Time AllocatorFewer than 10 installs apply_filters( 'acf/is_field_group_key', false, $id ) lib/advanced-custom-fields/includes/acf-field-group-functions.php:186
  20. Dashboard Feeds Dashboard Widget icon Dashboard Feeds Dashboard WidgetFewer than 10 installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:188
  21. Repeat Events icon Repeat EventsFewer than 10 installs apply_filters( 'acf/is_field_group_key', false, $id ) includes/acf/includes/acf-field-group-functions.php:186

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.