acf_field_clone::load_fieldpublicACF 3.6

This filter is appied to the $field after it is loaded from the database

Method of the class: acf_field_clone{}

No Hooks.

Returns

$field. - the field array holding all the field options

Usage

$acf_field_clone = new acf_field_clone();
$acf_field_clone->load_field( $field );
$field(required)
.

Changelog

Since 3.6 Introduced.

acf_field_clone::load_field() code ACF 6.8.8

function load_field( $field ) {

	// bail early if not enabled
	if ( ! $this->is_enabled() ) {
		return $field;
	}

	// load sub fields
	// - sub field name's will be modified to include prefix_name settings
	$field['sub_fields'] = $this->get_cloned_fields( $field );

	// return
	return $field;
}