acf_field_flexible_content::get_layout_titlepublicACF 1.0

Get a layout title for a field.

Method of the class: acf_field_flexible_content{}

No Hooks.

Returns

string. The layout title, optionally filtered.

Usage

$acf_field_flexible_content = new acf_field_flexible_content();
$acf_field_flexible_content->get_layout_title( $field, $layout, $i, $value );
$field(array) (required)
The field array.
$layout(array) (required)
The layout array.
$i(int) (required)
The order number of the layout.
$value(array) (required)
The value of the layout.

acf_field_flexible_content::get_layout_title() code ACF 6.8.8

public function get_layout_title( $field, $layout, $i, $value ) {
	$layout = new Layout( $field, $layout, $i, $value );
	return $layout->get_title();
}