WordPress filter hook

acf/fields/flexible_content/no_value_message

Fired by 6 WordPress plugins, running on 200K+ sites between them.

How to use acf/fields/flexible_content/no_value_message

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/fields/flexible_content/no_value_message', function( $no_value_message, $field ) {
	// Change $no_value_message here.
	return $no_value_message;
}, 10, 2 );

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

6 plugins that fire acf/fields/flexible_content/no_value_message

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

  1. Advanced Custom Fields: Extended icon Advanced Custom Fields: Extended100,000+ installs apply_filters( 'acf/fields/flexible_content/no_value_message', $no_value_message, $field ) includes/fields/field-flexible-content.php:388
  2. Secure Custom Fields icon Secure Custom Fields100,000+ installs apply_filters( 'acf/fields/flexible_content/no_value_message', $no_value_message, $this->field ) includes/fields/FlexibleContent/Render.php:120
  3. WPScreens icon WPScreens300+ installs apply_filters( 'acf/fields/flexible_content/no_value_message', $no_value_message, $field ) includes/acf/pro/fields/class-acf-field-flexible-content.php:288
  4. Flexblocks icon Flexblocks80+ installs apply_filters( 'acf/fields/flexible_content/no_value_message', $no_value_message, $field ) inc/acf/pro/fields/class-acf-field-flexible-content.php:278
  5. Contact Form 7 Analytics icon Contact Form 7 AnalyticsFewer than 10 installs apply_filters( 'acf/fields/flexible_content/no_value_message', $no_value_message, $field ) acf/pro/fields/flexible-content.php:289
  6. NavThemes Gutenberg Blocks icon NavThemes Gutenberg BlocksFewer than 10 installs apply_filters( 'acf/fields/flexible_content/no_value_message', $no_value_message, $field ) admin/pro/fields/class-acf-field-flexible-content.php:303

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.