acf_remove_local_field_group()ACF 5.7.10

acf_remove_local_field_group

Removes a field group for the given key.

No Hooks.

Returns

true|false.

Usage

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

Changelog

Since 5.7.10 Introduced.

acf_remove_local_field_group() code ACF 6.0.4

function acf_remove_local_field_group( $key = '' ) {
	return acf_get_local_store( 'groups' )->remove( $key );
}