WordPress filter hook
acf/format_value
Fired by 46 WordPress plugins, running on 2.1M+ sites between them.
“Filters the $value for use in a template function.”
How to use acf/format_value
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'acf/format_value', function( $value, $post_id, $field ) {
// Change $value here.
return $value;
}, 10, 3 );Argument names come from WPScreens's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
46 plugins that fire acf/format_value
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Advanced Custom Fields (ACF®)2+ million installs
apply_filters( 'acf/format_value', $value, $post_id, $field, $escape_html )includes/acf-value-functions.php:200 -
Secure Custom Fields100,000+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field, $escape_html )includes/acf-value-functions.php:191 -
WPGraphQL for ACF10,000+ installs
apply_filters( 'acf/format_value', $value, $node_id, $field_config, false )src/FieldConfig.php:476 -
Mapster WP Maps3,000+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field, $escape_html )includes/acf/includes/acf-value-functions.php:200 -
Advanced Views2,000+ installs
apply_filters( 'acf/format_value', $value, $source->get_id(), acf_get_field( $field_id ), false )src/Field_Provider/Acf/Acf_Data_Vendor.php:434 -
WPScreens300+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:139 -
MapifyLite (by MapifyPro)200+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field, $escape_html )lib/advanced-custom-fields/includes/acf-value-functions.php:172 -
WP Related Posts and Products (WRI)100+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )advanced-custom-fields/includes/acf-value-functions.php:141 -
Flexblocks80+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )inc/acf/includes/acf-value-functions.php:172 -
Dooodl50+ installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )includes/libs/advanced-custom-fields/acf.php:787 -
OneDS Start Package40+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field, $escape_html )includes/acf/includes/acf-value-functions.php:172 -
Social Influencer Links30+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )lib/acf/includes/acf-value-functions.php:141 -
Tuxedo Importer20+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:172 -
Accessibility Statement20+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:151 -
Fancy Grid Portfolio20+ installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )lib/advanced-custom-fields/acf.php:771 -
Simple Content Adder20+ installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )lib/advanced-custom-fields/acf.php:803 -
TSA Commerce20+ installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )vendors/acf/acf.php:811 -
Rexpansive Builder10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )admin/lib/acf/advanced-custom-fields/includes/acf-value-functions.php:172 -
FloristPress for Woo10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field, $escape_html )lib/acf/includes/acf-value-functions.php:191 -
Megabits Control Gastos10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:172 -
WoWpi Guild10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:141 -
Proshots For WooCommerce10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:141 -
Important Dates Dashboard Widget10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:151 -
Coronavirus (COVID-19) Live Update Popup10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:141 -
Realty Pack Core10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )app/acf/includes/acf-value-functions.php:144 -
Mufasa 🦁 Slider10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:139 -
LogicalDOC WordPress Explorer10+ installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )advanced-custom-fields/acf.php:800 -
Simply Documents10+ installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )lib/advanced-custom-fields/acf.php:831 -
Church Options10+ installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )lib/advanced-custom-fields/acf.php:831 -
Google Merchant Product Feed10+ installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )test.php:777 -
Schedule Tweets10+ installs
apply_filters( 'acf/format_value', $value, $post_id, $field )assets/plugins/acf/includes/api/api-value.php:350 -
Simple KMDG Resource CenterFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/advanced-custom-fields/includes/acf-value-functions.php:139 -
Admin Notes WPFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/advanced-custom-fields/includes/acf-value-functions.php:139 -
Ninety in NinetyFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )inc/acf/includes/acf-value-functions.php:141 -
Admin User ControlFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:141 -
Work Time AllocatorFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )lib/advanced-custom-fields/includes/acf-value-functions.php:141 -
Dashboard Feeds Dashboard WidgetFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:151 -
Repeat EventsFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )includes/acf/includes/acf-value-functions.php:141 -
Quick RecommendFewer than 10 installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )lib/advanced-custom-fields/acf.php:831 -
ASD Feature MapsFewer than 10 installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )includes/advanced-custom-fields/acf.php:811 -
Flaunt Your ClientsFewer than 10 installs
apply_filters( 'acf/format_value', $field['value'], $post_id, $field )includes/advanced-custom-fields/acf.php:766 -
Contact Form 7 AnalyticsFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )acf/api/api-value.php:308 -
FeichtMedia ImageManager for Advanced Custom FieldsFewer than 10 installs
apply_filters( 'acf/format_value', $value, 0, $acf_field, false )includes/class-graphql.php:269 -
House AdsFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )lib/acf/includes/api/api-value.php:371 -
NavThemes Gutenberg BlocksFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )admin/includes/api/api-value.php:371 -
NavThemes Employee RatingsFewer than 10 installs
apply_filters( 'acf/format_value', $value, $post_id, $field )admin/includes/api/api-value.php:371
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.