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:
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.
-
Dooodl50+ installs
apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value )includes/libs/advanced-custom-fields/core/controllers/field_group.php:751 -
Fancy Grid Portfolio20+ installs
apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value )lib/advanced-custom-fields/core/controllers/field_group.php:711 -
Simple Content Adder20+ installs
apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value )lib/advanced-custom-fields/core/controllers/field_group.php:757 -
TSA Commerce20+ installs
apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value )vendors/acf/core/controllers/field_group.php:757 -
LogicalDOC WordPress Explorer10+ installs
apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value )advanced-custom-fields/core/controllers/field_group.php:757 -
Simply Documents10+ installs
apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value )lib/advanced-custom-fields/core/controllers/field_group.php:757 -
Church Options10+ installs
apply_filters( 'acf/get_taxonomies_for_select', $choices, $simple_value )lib/advanced-custom-fields/core/controllers/field_group.php:757 -
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 -
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 -
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.