acf_field__group::render_field_block()publicACF 5.4.0

render_field_block

description

@type    function

{} Это метод класса: acf_field__group{}

Хуков нет.

Возвращает

$post_id. (int)

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

$acf_field__group = new acf_field__group();
$acf_field__group->render_field_block( $field );
$field (обязательный)
-

Список изменений

С версии 5.4.0 Введена.

Код acf_field__group::render_field_block() ACF 5.10.2

function render_field_block( $field ) {

	// vars
	$label_placement = ( $field['layout'] == 'block' ) ? 'top' : 'left';

	// html
	echo '<div class="acf-fields -' . $label_placement . ' -border">';

	foreach ( $field['sub_fields'] as $sub_field ) {

		acf_render_field_wrap( $sub_field );

	}

	echo '</div>';

}