acf_field_relationship::render_field_presentation_settingspublicACF 6.0

Renders the field settings used in the "Presentation" tab.

Method of the class: acf_field_relationship{}

No Hooks.

Returns

null. Nothing (null).

Usage

$acf_field_relationship = new acf_field_relationship();
$acf_field_relationship->render_field_presentation_settings( $field );
$field(array) (required)
The field settings array.

Changelog

Since 6.0 Introduced.

acf_field_relationship::render_field_presentation_settings() code ACF 6.0.4

function render_field_presentation_settings( $field ) {
	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Elements', 'acf' ),
			'instructions' => __( 'Selected elements will be displayed in each result', 'acf' ),
			'type'         => 'checkbox',
			'name'         => 'elements',
			'choices'      => array(
				'featured_image' => __( 'Featured Image', 'acf' ),
			),
		)
	);
}