ACF_Data::removepublicACF 5.7.10

remove

Removes data for the given name.

Method of the class: ACF_Data{}

No Hooks.

Returns

ACF_Data.

Usage

$ACF_Data = new ACF_Data();
$ACF_Data->remove( $name );
$name(string)
The data name.
Default: ''

Changelog

Since 5.7.10 Introduced.

ACF_Data::remove() code ACF 6.8.8

function remove( $name = '' ) {

	// Remove data.
	unset( $this->data[ $name ] );

	// Return this for chaining.
	return $this;
}