Support

Account

Home Forums ACF PRO View Parameter Values in acf/fields/flexible_content/layout_title Filter Reply To: View Parameter Values in acf/fields/flexible_content/layout_title Filter

  • Hi @leclaeli

    I believe you can just dump it like this:

    function my_acf_flexible_content_layout_title( $title, $field, $layout, $i ) {
        
        echo '<pre>';
        var_dump($title);
        var_dump($field);
        var_dump($layout);
        var_dump($i);
        echo '</pre>';
        
        
        // return
        return $title;
        
    }
    
    // name
    add_filter('acf/fields/flexible_content/layout_title/name=my_flex_field', 'my_acf_flexible_content_layout_title', 10, 4);

    The problem with repeater field is that there’s no place to put the title. If you want, you can use the message field and modify the value by using the acf/load_value filter.

    I hope this helps 🙂