WP Document Revisions
Document management and version control for WordPress.
Install in
Document management and version control for WordPress. Collaborate on files, track every revision, and auto-generate change summaries with AI.
What is WP Document Revisions?
WP Document Revisions is a document management and version control plugin. Built for time-sensitive and mission-critical projects, teams can collaboratively edit files of any format — text documents, spreadsheets, images, sheet music… anything — all the while, seamlessly tracking the document’s progress as it moves through your organization’s existing workflow. It’s been downloaded more than 200,000 times from WordPress.org.
WP Document Revisions is three things
- 📁 Document Management System (DMS) – Track, store, and organize files of any format
- 👥 Collaboration Tool – Empower teams to collaboratively draft, edit, and refine documents
- 🔒 File Hosting Solution – Publish and securely deliver files to teams, clients, or the public
✨ Modern and AI-ready
WP Document Revisions keeps pace with modern WordPress:
- 🔍 Full-text search inside your files — native text extraction from PDF, DOCX, and ODT documents (pluggable for more formats) makes document contents searchable, not just their titles.
- 🤖 AI-generated revision summaries — powered by the WordPress 7.0 AI Client, each new revision can be summarized automatically from a diff against the prior version and pre-filled into the revision log for your review (opt-in, with per-document and sitewide opt-outs).
- 🧱 Block editor support — an opt-in Gutenberg editing experience with a document sidebar panel for uploads, revision summaries, and lock status.
- 🔌 REST API & WP-CLI — manage documents headlessly and backfill the search/AI cache across your whole library from the command line.
See the full list of features for more information.
📚 Documentation
Complete Documentation Site – Your one-stop resource for everything about WP Document Revisions.
🎯 Quick Start Guides
- Installation – Get up and running in minutes
- Features and Overview – Discover what WP Document Revisions can do
- Screenshots – See the plugin in action
📖 User Documentation
- Frequently Asked Questions – Common questions answered
- Block Editor Support – Opt-in Gutenberg editing for documents
- Plugin Actions – Available WordPress actions
- Plugin Filters – Available WordPress filters
- Plugin Shortcodes and Widget – Display documents on your site
- Document Notifications – Email people when a document changes state or gets a new revision
- Useful Plugins and Tools – Extend functionality
- Cookbook – Integration guides and recipes
- Translations – Multi-language support
- Links – Additional resources
🆘 Support & Community
- Where to get Support or Report an Issue – Get help when you need it
- How to Contribute – Join our community
- Join the Mailing List – Stay updated
Features
Overview
Powerful Collaboration Tools – With great power does not have to come great complexity. Based on a simple philosophy of putting powerful but intuitive tools in the hands of managers and content creators, WP Document Revisions leverages many of the essential WordPress features that, for more than eight years, have been tested and proven across countless industries — posts, attachments, revisions, taxonomies, authentication, and permalinks — to make collaborating on the creation and publication of documents a natural endeavor. Think of it as an open-source and more intuitive version of the popular Microsoft collaboration suite, Sharepoint.
Document History – At each step of the authoring process, WP Document Revisions gives you an instant snapshot of your team’s progress and the document’s history. It even gives you the option to revert back to a previous revision — so don’t fret if you make a mistake — or receive updates on changes to the document right in your favorite feed reader.
Access Control – Each document is given a persistent URL (e.g., yourcompany.com/documents/2011/08/TPS-Report.doc) which can be private (securely delivered only to members of your organization), password protected (available only to those you select such as clients or contractors), or public (published and hosted for the world to see). If you catch a typo and upload a new version, that URL will continue to point to the latest version, regardless of how many changes you make.
Enterprise Security – Worried about storing propriety or sensitive information? WP Document Revisions was built from the first line of code with government- and enterprise-grade security in mind. Each file is masked behind an anonymous 128-bit MD5 hash as soon as it touches the server, and requests for files are transparently routed through WordPress’s time-tested URL rewriting, authentication, and permission systems (which can even integrate with existing enterprise active directory or LDAP servers). Need more security? WP Document Revisions allows you to store documents in a folder above the htdocs or public_html web root, further ensuring that only those you authorize have access to your work.
Customization – WP Document Revisions recognizes that no two teams are identical, and as a result, molds to your firm’s needs, not the other way around. Need to track additional information associated with a document? Departments, editors, issues, sections, even arbitrary key-value pairs — whatever you can throw at it, it can handle. Development and customization costs are further minimized by its extensive plugin API, and the WordPress Custom Taxonomy Generator makes it easy for even the uninitiated to add custom taxonomies to documents. Need an audit trail to track check-ins and check-outs? User-level permissions based on the document’s state or another custom taxonomy? Support for third-party encryption? Check out the WP Document Revisions Code Cookbook for sample code. Looking for even more advanced control of your workflow? WP Document Revisions will detect the popular workflow plugin Edit Flow, if installed, and will automatically pull Edit Flow’s advanced workflow management tools into WP Document Revisions. Simply put, virtually every aspect of the plugin’s functionality from workflow states to user-level permissions can be fully customized to your team’s unique needs.
Future Proof – Switching costs a concern? WP Document Revisions is built with tomorrow’s uncertainty in mind. Equally at home in an in-house server room as it is in the cloud, moving individual files or entire document repositories in and out of WP Document Revisions is a breeze (history and all). And since the software is open-source, you can easily add tools to automate the process of moving to or integrating with future third-party systems.
Features
- Support for any file type (docs, spreadsheets, images, PDFs — anything!)
- Securely stores unlimited revisions of your business’s essential files
- Provides a full file history in the form of a revision log, accessible via RSS
- Helps you track and organize documents as they move through your organization’s existing workflow
- Each file gets a permanent, authenticated URL that always points to the latest version
- Each revision gets its own unique url (e.g.,TPS-Report-revision-3.doc) accessible only to those you deem
- Files are intuitively checked out and locked to prevent revisions from colliding
- Toggle documents between public, private, and password protected with a single mouse click
- Runs in-house or in the cloud
- Secure: filenames are hashed on upload and files are only accessible through WordPress’s proven authentication system
- Can move document upload folder to location outside of web root to further ensure government- and enterprise-grade security
- Documents and Revisions shortcodes, Recently Revised Documents widget
- Multisite and Windows (XAMPP) support
- Fully translatable, with community translations delivered as WordPress.org language packs (help translate)
- Integration with Edit Flow, PublishPress or PublishPress Statuses.
- Opt-in Block Editor (Gutenberg) support with document sidebar panel
- REST API security hardening: attachment data sanitized for non-editors, attachment ownership validation
- WordPress Abilities API integration (WP 6.9+) for AI agents and the command palette, with read-only abilities exposed over the Model Context Protocol via the WordPress MCP Adapter
- Native text extraction from PDF, DOCX, and ODT files (pluggable for additional formats), cached per-attachment for search and AI use
- AI-generated revision summaries via the WordPress 7.0 AI Client, computed from a unified diff of the new revision against the prior one and pre-filled into the revision log for editor review. See the Text Extraction & AI cookbook entry for customization recipes
- WP-CLI
document-revisions extract-textcommand to backfill the extraction cache across an existing library, with--all/--missing/--id/--extractor/--force/--dry-runselectors - WP-CLI
document-revisions validate [--fix]command that runs the Validate Structure checks across every document and applies the available fixes - Per-document and sitewide opt-outs for text extraction and AI pre-fill — extraction respects
WPDR_TEXT_EXTRACTION, AI pre-fill respectsWPDR_AI_SUMMARY_PREFILLand the coreWP_AI_SUPPORTconstant - Clean uninstall: options, user meta, and capabilities removed on plugin deletion
- Deactivation hook flushes rewrite rules for clean deactivation
- Recently Revised Documents Widget, shortcodes, and templating functions for front-end integration
- Opt-in email notifications when a document changes workflow state or gains a new revision, with a configurable recipient list (see Document Notifications)
Features Available via the Code Cookbook
The Code Cookbook has sample code for these:
- Audit Trail – creates check in / check out audit trail for all documents
- Taxonomy-based Permissions – allows setting user-level permissions based on a custom taxonomy such as department
- Third Party Encryption – example of how to integrate at rest encryption using third-party tools
- Rename Documents – changes all references to “Documents” in the interface to any label of your choosing
- Bulk Import – how to batch import a directory (or other list) of files as documents
- Filetype Taxonomy – Adds support to filter by filetype
- Track Changes – Auto-generates and appends revision summaries for changes to taxonomies, title, and visibility
- Change Tracker – Auto-generates and appends revision summaries for changes to taxonomies, title, and visibility
- WPML Support – Integration with WPML
Links
- Source Code (GitHub)
- Latest Release – Download the newest version
- WordPress.org Plugin Page – Official plugin listing
- Development Version (CI Status)
- Code Cookbook – Code examples and customizations
- Translations (translate.wordpress.org)
- Where to get Support or Report an Issue – Get help when you need it
- How to Contribute – Join our community
Written by Joobi from the project's own listing. See the source page
Numbers in brackets show the issue number in https://github.com/wp-document-revisions/wp-document-revisions/issues/
5.8.4
- Email notifications can now be turned on on multisite. The notification settings on each site’s Media screen saved, but the plugin read them from the network instead, so they never took effect and the checkboxes appeared to reset. Settings a site saved before this release take effect once you update, so emails may start going out. (#906, #917) Thanks to @switchcasestudio.
- Images uploaded as a document’s featured image or into its description are no longer attached to the document as if they were document files. Before, Validate Structure could list them as inaccessible document files and offer to delete them. It now finds images attached this way in the past and offers to detach them instead, which leaves the images in the Media Library. Developers can adjust this with the new
document_keep_media_parentanddocument_validate_doc_typefilters. (#900) Thanks to @NeilWJames. - Deleting the plugin on multisite now removes its settings and document capabilities from every site, not just the main site. (#919) Thanks to @switchcasestudio.
- The WordPress.org plugin page now has an FAQ tab. Its answers were checked against the current plugin, and it explains how to email readers when a document is published with the Email Notice add-on. (#904, #905, #907)
5.8.3
- Activating the plugin for the first time no longer shows a false “You do not have the edit_documents capability” warning. On WordPress Playground, including the Live Preview on WordPress.org, the plugin activates on every visit, so every session showed it. (#887, #890) Thanks to @NeilWJames for reporting it.
- When the server can’t read a document’s file, for example after a PHP upgrade changes the account PHP runs as, opening the document now shows a message explaining that the file isn’t readable, instead of a blank error page. (#885, #889)
- The plugin no longer bundles its Norwegian (Bokmål), Polish and Turkish translations. WordPress now installs these from translate.wordpress.org language packs, so nothing changes on sites using those languages. (#894)
- Code examples on the WordPress.org plugin page now display as code. (#901)
5.8.2
- Security: WordPress’s embed lookup (oEmbed) gave out the stored file name of a document’s files. Document files sit in the uploads folder by default, so on sites that don’t block that folder, anyone could use the name to download the file of a password-protected document, or any earlier version of a published one. The embed lookup now refuses document files, and visitors who can’t edit a document see the document’s title instead of a file’s stored name (GHSA-5452-pc3q-85f6).
- Security: on sites that turn on documents in the REST API with the
document_show_in_restfilter (off by default), a Contributor could make another user’s document go back to serving one of its older files the next time that document was saved. If a document is serving an old file, upload the current file again (GHSA-c47p-xwvp-x5rm). - Security: REST term counts for document taxonomies included draft, pending and private documents, so anyone could see how many non-public documents carry each workflow state or custom document taxonomy term. They now count only published documents, unless the user can already see every document (GHSA-vp9c-qx2m-x9r8). Thanks to Andrew Melek for reporting it.
- A document URL with a malformed
revisionvalue, such as?revision=abc, now gets the normal not-found response instead of a server error. (#874) Thanks to Andrew Melek for reporting it. - The plugin now stops sending uploads to the document folder in the same place it marks a document upload as finished, so that redirect can’t stay on for the rest of the request when its file-name step is skipped. (#862)
For complete changelog, see GitHub
Follow this listing's changes (Atom feed)