WordPress filter hook

acf/get_taxonomies_for_select

Fired by 10 WordPress plugins, running on 140+ sites between them.

How to use acf/get_taxonomies_for_select

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/get_taxonomies_for_select', function( $choices, $simple_value ) {
	// Change $choices here.
	return $choices;
}, 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.

10 plugins that fire acf/get_taxonomies_for_select

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

  1. Dooodl icon Dooodl50+ installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) includes/libs/advanced-custom-fields/core/controllers/field_group.php:751
  2. Fancy Grid Portfolio icon Fancy Grid Portfolio20+ installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) lib/advanced-custom-fields/core/controllers/field_group.php:711
  3. Simple Content Adder icon Simple Content Adder20+ installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) lib/advanced-custom-fields/core/controllers/field_group.php:757
  4. TSA Commerce icon TSA Commerce20+ installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) vendors/acf/core/controllers/field_group.php:757
  5. LogicalDOC WordPress Explorer icon LogicalDOC WordPress Explorer10+ installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) advanced-custom-fields/core/controllers/field_group.php:757
  6. Simply Documents icon Simply Documents10+ installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) lib/advanced-custom-fields/core/controllers/field_group.php:757
  7. Church Options icon Church Options10+ installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) lib/advanced-custom-fields/core/controllers/field_group.php:757
  8. Quick Recommend icon Quick RecommendFewer than 10 installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) lib/advanced-custom-fields/core/controllers/field_group.php:757
  9. ASD Feature Maps icon ASD Feature MapsFewer than 10 installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) includes/advanced-custom-fields/core/controllers/field_group.php:757
  10. Flaunt Your Clients icon Flaunt Your ClientsFewer than 10 installs apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value ) includes/advanced-custom-fields/core/controllers/field_group.php:762

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.