WP Document Revisions

Document Notifications

WP Document Revisions can email interested people when a document moves through your workflow — when it changes workflow state (for example, moved to Under Review or Approved) or when a new revision is saved. This turns workflow states from passive labels into an active review loop: the reviewer actually hears about it.

Notifications are opt-in and disabled by default, so enabling the plugin (or upgrading) never starts sending mail on its own.

Enabling notifications

Notifications are configured under Settings → Media, in the Document Notifications section:

Who gets notified

For each event, the recipients are:

with two rules always applied:

Each recipient receives their own copy — the recipient list is never exposed to the others, and no stray copy is sent to the site administrator.

Note on bulk edits: because a notification is sent per document, changing the workflow state of many documents at once (for example, a bulk edit) sends one notification per document. Use the document_notification_recipients filter to suppress or reroute mail in that situation if needed.

Customizing with filters

Every part of the behavior is filterable. See Filters for full signatures. In brief:

Example: route “Under Review” to a review team

add_filter(
	'document_notification_recipients',
	function ( $emails, $doc_id, $event, $actor_id ) {
		if ( 'state_change' !== $event ) {
			return $emails;
		}
		$states = wp_get_object_terms( $doc_id, 'workflow_state', array( 'fields' => 'names' ) );
		if ( in_array( 'Under Review', $states, true ) ) {
			$emails[] = 'review-team@example.com';
		}
		return $emails;
	},
	10,
	4
);

Delivery

Notifications are sent through WordPress’s standard wp_mail(). On sites with high mail volume or a slow mail server, install a transactional-email/SMTP plugin so delivery does not add latency to saving a document.