Hi @bluecomet
You can see examples of this in core/controllers/input.php
on line 137:
// get field groups
$filter = array(
'post_id' => $post_id,
);
$metabox_ids = array();
$metabox_ids = apply_filters( 'acf/location/match_field_groups', $metabox_ids, $filter );