acf_get_field_group_post()ACF 5.7.10

acf_get_field_group_post

Retrieves the field group's WP_Post object.

No Hooks.

Returns

(Array|false). The field group's array.

Usage

acf_get_field_group_post( $id );
$id((int|string))
The field group's ID, key or name.

Changelog

Since 5.7.10 Introduced.

acf_get_field_group_post() code ACF 6.8.8

function acf_get_field_group_post( $id = 0 ) {
	return acf_get_internal_post_type_post( $id, 'acf-field-group' );
}