acf_field_flexible_content::get_layout_titlepublicACF 1.0

Get a layout title for a field.

Метод класса: acf_field_flexible_content{}

Хуков нет.

Возвращает

string. The layout title, optionally filtered.

Использование

$acf_field_flexible_content = new acf_field_flexible_content();
$acf_field_flexible_content->get_layout_title( $field, $layout, $i, $value );
$field(массив) (обязательный)
The field array.
$layout(массив) (обязательный)
The layout array.
$i(int) (обязательный)
The order number of the layout.
$value(массив) (обязательный)
The value of the layout.

Код acf_field_flexible_content::get_layout_title() ACF 6.8.8

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