WordPress filter hook

acf/fields/flexible_content/layout_title

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

How to use acf/fields/flexible_content/layout_title

It's a filter: your callback receives the value and 3 more arguments, 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/layout_title', function( $title, $field, $layout, $i ) {
	// Change $title here.
	return $title;
}, 10, 4 );

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/layout_title

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/layout_title', $title, $field, $layout, $i ) includes/fields/field-flexible-content.php:1015
  2. Secure Custom Fields icon Secure Custom Fields100,000+ installs apply_filters( 'acf/fields/flexible_content/layout_title', $title, $this->field, $this->layout, $this->order ) includes/fields/FlexibleContent/Layout.php:318
  3. WPScreens icon WPScreens300+ installs apply_filters( 'acf/fields/flexible_content/layout_title', $title, $field, $layout, $i ) includes/acf/pro/fields/class-acf-field-flexible-content.php:1500
  4. Flexblocks icon Flexblocks80+ installs apply_filters( 'acf/fields/flexible_content/layout_title', $title, $field, $layout, $i ) inc/acf/pro/fields/class-acf-field-flexible-content.php:1475
  5. Contact Form 7 Analytics icon Contact Form 7 AnalyticsFewer than 10 installs apply_filters( 'acf/fields/flexible_content/layout_title', $title, $field, $layout, $i ) acf/pro/fields/flexible-content.php:1543
  6. NavThemes Gutenberg Blocks icon NavThemes Gutenberg BlocksFewer than 10 installs apply_filters( 'acf/fields/flexible_content/layout_title', $title, $field, $layout, $i ) admin/pro/fields/class-acf-field-flexible-content.php:1528

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.