acf_is_local_field()ACF 5.7.10

acf_is_local_field

Returns true if a field exists for the given key or name.

No Hooks.

Returns

true|false.

Usage

acf_is_local_field( $key );
$key(string)
The field group key.
Default: ''

Changelog

Since 5.7.10 Introduced.

acf_is_local_field() code ACF 6.0.4

function acf_is_local_field( $key = '' ) {
	return acf_get_local_store( 'fields' )->has( $key );
}