public function handleBulkExport($redirectTo, $doaction, $postIds)
    {
        if ($doaction !== 'acfExportManager-export') {
            return $redirectTo;
        }


        foreach ($postIds as $postId) {
            $fieldgroup = acf_get_field_group($postId);

            if (!in_array($fieldgroup['key'], $this->exportPosts)) {
                continue;
            }

            $this->export($fieldgroup, false, false);
        }

        $redirectTo = add_query_arg('bulkExportedFieldgroups', count($postIds), $redirectTo);
        return $redirectTo;
    }