acf_get_field_group_post()
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() 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' );
}