acf_is_local_field_key()ACF 5.7.10

acf_is_local_field_key

Returns true if a field exists for the given key.

No Hooks.

Returns

true|false.

Usage

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

Changelog

Since 5.7.10 Introduced.

acf_is_local_field_key() code ACF 6.0.4

function acf_is_local_field_key( $key = '' ) {
	return acf_get_local_store( 'fields' )->is( $key );
}