This plugin makes use of many filters to tailor the delivered processing according to a site’s needs.
Most of them are named with a leading ‘document-‘ but there are a few additional non-standard ones shown at the bottom.
In: class-wp-document-revisions-front-end.php
Filters the Document taxonomies (allowing users to select the first three for the block widget.
In: class-wp-document-revisions.php
Filter to define file writing buffer size (Default 0 = No buffering).
In: class-wp-document-revisions.php
Filters the default capabilities provided by the plugin. Note that by default all custom roles will have the default Subscriber access.
In: class-wp-document-revisions.php
Sets the content disposition header to open the document (inline) or to save it (attachment). Ordinarily set as inline but can be changed.
In: class-wp-document-revisions.php
Sets to false to use the standard RSS feed.
In: class-wp-document-revisions.php
Allows the document file extension to be manipulated.
In: class-wp-document-revisions-admin.php
Filters the default help text for current screen.
In: class-wp-document-revisions.php
Filters the home_url() for WPML and translated documents.
In: class-wp-document-revisions.php
Filters the encoded file name for the attached document (on save).
In: class-wp-document-revisions.php
Filters the user locking the document file.
In: class-wp-document-revisions.php
Filters the lost lock document email text.
In: class-wp-document-revisions.php
Filter to serve file even if output already written.
In: class-wp-document-revisions.php
Filters the file name for WAMP settings (filter routine provided by plugin).
In: class-wp-document-revisions.php
Filters the Document permalink.
In: class-wp-document-revisions.php
Filters the post-thumbnail size parameters (used only if this image size has not been set).
In: class-wp-document-revisions.php
Filters the users capacities to require read (or read_document) capability.
In: class-wp-document-revisions.php
Filters the plugin query to fetch all the attachments of a parent post.
In: class-wp-document-revisions.php
Filters the delivered document type definition prior to registering it.
In: class-wp-document-revisions.php
Filters the default structure and label values of the workflow_state taxonomy on declaration.
In: class-wp-document-revisions-admin.php
Filters the number of revisions to keep for documents.
In: class-wp-document-revisions-admin.php
Filters whether to merge two revisions for a change in excerpt (generally where taxonomy change made late).
In: class-wp-document-revisions.php
Filters the MIME type for a file before it is processed by WP Document Revisions.
In: class-wp-document-revisions.php
Filters the HTTP headers sent when a file is served through WP Document Revisions.
In: class-wp-document-revisions.php
Filter to switch off integration with Edit_Flow/PublishPress statuses.
In: class-wp-document-revisions.php
Filters the Document rewrite rules.
In: class-wp-document-revisions.php
Filters file name of document served. (Useful if file is encrypted at rest).
In: class-wp-document-revisions.php
Filter the attachment post to serve (Return false to stop display).
In: class-wp-document-revisions.php
Filter to determine if gzip should be used to serve file (subject to browser negotiation).
In: class-wp-document-revisions-front-end.php
Filters the Document shortcode attributes.
In: class-wp-document-revisions-front-end.php
Filters the controlling option to display an edit option against each document.
In: class-wp-document-revisions.php
Filters the show_in_rest parameter from its default value of fa1se.
In: class-wp-document-revisions.php
Filters the document slug.
In: class-wp-document-revisions.php
Filter to stop direct file access to documents (specify the URL element (or trailing part) to traverse to the document directory.
In: class-wp-document-revisions.php
Filter to select which taxonomies with default term count to be modified to count all non-trashed posts.
In: class-wp-document-revisions.php
Filter the document title from the post.
In: class-wp-document-revisions-admin.php
Filters setting the new document status to private.
In: class-wp-document-revisions.php
Filter to switch off use of standard Workflow States taxonomy. For internal use.
In: class-wp-document-revisions.php
Filter whether WP_FileSystem used to serve document (or PHP readfile). Irrelevant if file compressed on output.
In: class-wp-document-revisions-validate-structure.php
Filter to switch off md5 format attachment validation.
In: class-wp-document-revisions.php
Allows the RSS feed to be switched off.
In: class-wp-document-revisions.php
Filters the default workflow state values.
In: class-wp-document-revisions.php
Filters the locked document email subject text.
In: class-wp-document-revisions.php
Filters the locked document email message text.
In: class-wp-document-revisions.php
Filters the option to send a locked document override email
In: class-wp-document-revisions.php
Filters the decision to serve the document through WP Document Revisions.