ACF_Data::getpublicACF 5.7.10

get

Returns data for the given name of null if doesn't exist.

Method of the class: ACF_Data{}

No Hooks.

Returns

Mixed.

Usage

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

Changelog

Since 5.7.10 Introduced.

ACF_Data::get() code ACF 6.0.4

function get( $name = false ) {

	// Get all.
	if ( $name === false ) {
		return $this->data;

		// Get specific.
	} else {
		$key = $this->_key( $name );
		return isset( $this->data[ $key ] ) ? $this->data[ $key ] : null;
	}
}