WordPress filter hook
acf/get_info
Fired by 13 WordPress plugins, running on 109K+ sites between them.
How to use acf/get_info
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'acf/get_info', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from ACF Content Analysis for Yoast SEO's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
13 plugins that fire acf/get_info
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
ACF Content Analysis for Yoast SEO100,000+ installs
apply_filters( 'acf/get_info', 'version' )inc/configuration/configuration.php:78 -
ACF Theme Code for Advanced Custom Fields9,000+ installs
apply_filters( 'acf/get_info', 'version' )core/core.php:172 -
ACF Code Generator100+ installs
apply_filters( 'acf/get_info', 'version' )core/ACFCG_core.php:141 -
Dooodl50+ installs
apply_filters( 'acf/get_info', 'dir' )includes/libs/advanced-custom-fields/core/controllers/addons.php:125 -
Fancy Grid Portfolio20+ installs
apply_filters( 'acf/get_info', 'dir' )lib/advanced-custom-fields/core/controllers/addons.php:120 -
Simple Content Adder20+ installs
apply_filters( 'acf/get_info', 'dir' )lib/advanced-custom-fields/core/controllers/addons.php:125 -
TSA Commerce20+ installs
apply_filters( 'acf/get_info', 'dir' )vendors/acf/core/controllers/addons.php:125 -
LogicalDOC WordPress Explorer10+ installs
apply_filters( 'acf/get_info', 'dir' )advanced-custom-fields/core/controllers/addons.php:125 -
Simply Documents10+ installs
apply_filters( 'acf/get_info', 'dir' )lib/advanced-custom-fields/core/controllers/addons.php:125 -
Church Options10+ installs
apply_filters( 'acf/get_info', 'dir' )lib/advanced-custom-fields/core/controllers/addons.php:125 -
Flaunt Your ClientsFewer than 10 installs
apply_filters( 'acf/get_info', 'dir' )includes/advanced-custom-fields/core/controllers/addons.php:125 -
Quick RecommendFewer than 10 installs
apply_filters( 'acf/get_info', 'dir' )lib/advanced-custom-fields/core/controllers/addons.php:125 -
ASD Feature MapsFewer than 10 installs
apply_filters( 'acf/get_info', 'dir' )includes/advanced-custom-fields/core/controllers/addons.php:125
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.