src/AcfExportManager.php
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;
    }
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;
    }
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 ; }
Handles bulk exporting
@param  string $redirectTo Redirect
@param  string $doaction   The bulk action to do
@param  array  $postIds    Selected posts
@return string             The redirect
Handles bulk exporting