acf_set_form_data()ACF 5.0.0

acf_set_form_data

Sets data about the current form.

No Hooks.

Returns

ACF_Data.

Usage

acf_set_form_data( $name, $data );
$name(string)
The store name.
Default: ''
$data(array)
Array of data to start the store with.
Default: false

Changelog

Since 5.0.0 Introduced.

acf_set_form_data() code ACF 6.8.8

function acf_set_form_data( $name = '', $data = false ) {
	return acf_get_store( 'form' )->set( $name, $data );
}