ACF_Data::haspublicACF 5.7.10

has

Returns true if this has data for the given name.

Method of the class: ACF_Data{}

No Hooks.

Returns

true|false.

Usage

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

Changelog

Since 5.7.10 Introduced.

ACF_Data::has() code ACF 6.8.8

function has( $name = '' ) {
	$key = $this->_key( $name );
	return isset( $this->data[ $key ] );
}