ACF::set_datapublicACF 5.0.0

Sets data for the given name and value.

Method of the class: ACF{}

No Hooks.

Returns

void. Nothing (null).

Usage

$ACF = new ACF();
$ACF->set_data( $name, $value );
$name(string) (required)
The data name.
$value(mixed) (required)
The data value.

Changelog

Since 5.0.0 Introduced.

ACF::set_data() code ACF 6.8.8

public function set_data( $name, $value ) {
	$this->data[ $name ] = $value;
}