Sample Code for Common WP Document Revision Implimentations
PHP HTML JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
deprecated
document-parent
3d-party-encryption.php
audit-trail.php
bulk-import.php
change-tracker.php
filetype-taxonomy.php
license.html
network-admin.php
readme.md
remove-date-from-permalink.php
remove-workflow-states.php
rename-documents.php
state-change-notifications.php
taxonomy-permissions.php

readme.md

Sample code to help customize WP Document Revisions. Once adapted to your organizations needs the files in the cookbook should be dropped into your /wp-content/plugins/ directory (or a sub-directory thereof) and activated like any plugin would.

  1. Third Party Encryption - example of how to integrate at rest encryption using third-party tools
  2. Audit Trail - creates check in / check out audit trail
  3. Bulk Import - how to batch import a directory (or other list) of files as documents
  4. Change Tracker - Auto-generates and appends revision summaries for changes to taxonomies, title, and visibility'
  5. Document Parent - Creates UI for selecting document's post parent (useful for querying on the front-end like attachments)
  6. Filetype Taxonomy - Adds support to filter by filetype
  7. Network Admin - Provides interface to set document upload directory when plugin is not network activated on multisite installs
  8. Remove Date from Permalink - Remove the automatically prepended /yyyy/mm/ from document links
  9. Remove Workflow States - Completely removes Workflow state taxonomy backend and UI
  10. Rename Documents - changes all references to "Documents" in the interface to any label of your choosing
  11. State Change Notification - how to use document api to allow the author to receive notification whenever his or her document changes workflow states
  12. Taxonomy Permissions - allows setting user-level permissions and access control based on document being in a given workflow state or other custom taxonomy such as department

Code Cookbook Alumni (Deprecated functions now included with the plugin by default):

  1. Recently Revised Widget - example of how to list recently revised documents in a widget
  2. Revision Shortcode - Code sample to demonstrate short code to list revisions
  3. Edit Flow Support - detect and integrate with Edit Flow, when present

See also, the full set up custom plugins used to power a peer reviewed scholarly publication's workflow.