Email Notice for WP Document Revisions
Add-on to WP Document Revisions to notify your users about new documents published or create user email lists to send non-users notifications.
Install in
This plugin is an add-on to WP Document Revisions. This supports sending out email notifications about newly published documents to users who are interested to receive notifications either automatically (on publish) or manually.
By default when you send any notification from your blog (including many of the plugins as well) sender is “WordPress” and the sender email address is wordpress@yourdomain.com.
This plugin will enable you to
-
Let your WordPress users (automatically/manually) receive email notifications of updates to your published documents
-
Create lists of email users that can be sent email notifications of updates to your published documents
-
Easily customize notification email subject and content templates
-
Re-send email notifications manually as well
-
You can add a notification-specific message in the email.
-
When a notification is resent to a user, then you can include information that it is a resend and when previously sent
-
Maintain email logs about sent email notifications.
-
Replace default wordpress@yourdomain.com to any email address
-
Replace default email from “WordPress” name to anything you want
-
Administration forms contain significant pulldown Help information.
For your WordPress users:
-
Send notifications about password protected posts as well to those that can read it (password will NOT be included in notification email)
-
Users can opt-out if they don’t want to receive emails (they can choose to get all/nothing)
-
Bulk subscribe/unsubscribe users to/from email notifications (go to Users->All Users and see bulk actions)
For your External users:
-
The lists will contain the terms which, when matched to the document, will then send the notification to all users in the list
-
Matching rule can be set to either match one term or all terms on the list.
Initial release was based on plugin “WP JV Custom Email Settings” by Janos Ver.
Migration Notice
Upgrading to 4.0.1
- Admin screen markup changed for accessibility. Custom CSS or scripts that target the removed ids and classes need updating: the profile section’s
wpdr_en-headerandwpdr_en-contentwrappers (its heading is now an h2), the List Attributestm_labelandtm_ruledids, the Quick Edittm_any,tm_all,tm_label,tm_descrandtm_ruledids, and the progress imagespnSendNotifications.
Upgrading to 4.0.0
- The email logs (Document Emails menu) and the External List part of the Document metabox now need the new read_doc_ext_lists capability (previously edit_documents).
- On upgrade, read_doc_ext_lists is given to every role and user that has edit_doc_ext_lists. Give it to any other role or user that needs this access, e.g. Authors who send External List emails.
- Sending External List emails needs read_doc_ext_lists as well as the right to edit the Document. Only users with edit_doc_ext_lists can choose which matched Lists to send to.
- If you chose Auto for “Internal Notice mode” (Settings > Writing), choose it again and save: since 3.2 it was stored as Manual.
Written by Joobi from the project's own listing. See the source page
4.0.1
Release date: November 23, 2026
Breaking changes: see Upgrading to 4.0.1 under Migration Notice.
- FIX: Accessibility: External List address entry: the fields are labelled; adding, updating or deleting an address is announced to screen readers, and focus moves to the name field (or, after a delete, to the address table heading) instead of being lost; an invalid email address is marked and focused. Add Address to List is enabled as you type. Delete asks before deleting.
- FIX: Accessibility: Document metabox: sending results and errors go to a status region that screen readers announce (errors no longer use an alert box); the extra text box is labelled by its visible text; a disabled Send button says why it can’t be used; the progress icon is the WordPress spinner (it was an image without alt text); the Lists to send to are a named group.
- FIX: Accessibility: Email logs: the Extra Text button says whether the text is shown and which log entry it belongs to; the text box is labelled and read-only, and no longer hides itself when clicked.
- FIX: Accessibility: Edit and Delete in the address table name their address; the read-only boxes in the Lists table and the address table are named.
- FIX: Accessibility: Groups of choices are fieldsets with legends (settings, profile, List Attributes, Quick Edit) and hints are linked to their fields. The profile section heading is an h2, like the rest of that screen. The template tags in Settings > Writing are a description list. The List Attributes headings no longer use the metabox drag-handle class.
- FIX: Accessibility: Notification emails state their language, text direction, character set and title. The closing text of the default templates is no longer in small print.
- FIX: Repeated ids in Quick Edit and Bulk Edit, unclosed tags and a broken style in the Document metabox,
</input>tags in the From settings, and the address table column widths (a missing comma in the style sheet). - DEV: PHPStan static analysis at level 5 with WordPress’s types (szepeviktor/phpstan-wordpress):
composer analyse(phpstan.neon.dist) and a phpstan job in CI. Fixed what it found: wrong PHPDoc types (list table cells and sortable columns, hook parameters, send results, the repeat text), a save_post_document hook registered with three arguments for a one-argument callback, esc_url_raw() given a URL scheme where it takes a list of protocols, the DOING_AJAX constant (now wp_doing_ajax()), redundant or always-true checks, and a missing return in the address table. The daily clean-up hook now calls purge_logs_daily(), which returns nothing; purge_logs() still returns the counts. - DEV: End-to-end test helper works with WordPress 7.1.5, which serves no REST request when WP_ADMIN is defined: its routes now count as admin requests through an admin screen instead, and accept the logged-in cookie.
- DEV: Accessibility tests: PHPUnit
class-test-wpdr-en-accessibility.php; Jest tests for the status messages, focus, Delete confirmation and aria-expanded; end-to-end checks of labels, announcements and focus.
4.0.0
Release date: October 12, 2026
Breaking changes: see Upgrading to 4.0.0 under Migration Notice.
- FIX: External List matching no longer relies on the database comparing text with numbers (WordPress Playground’s SQLite matched no List); a List without a match rule counts as “any”, as its screen shows. Old log entries are deleted with plain SQL that also runs there.
- NEW: Export CSV on both email log pages: downloads every entry matching the page’s search, in its order, for anyone who can see the logs. UTF-8 for Excel; cells that a spreadsheet would run as formulas are made text.
- NEW: Old log entries are deleted daily for Documents not modified for a set number of days: internal entries by a Settings > Writing value, external entries by a value on each Document External List (changed only by users who can delete Lists). Empty or 0 keeps them.
- NEW: Capability read_doc_ext_lists controls who sees Document External Lists: the email logs (Document Emails menu) and the External List part of the Document metabox. Given on upgrade to every role and user with edit_doc_ext_lists.
- FIX: Security: Sending to External Lists needs read_doc_ext_lists; only users with edit_doc_ext_lists can choose which matched Lists to send to (the unticking was not enforced before).
- FIX: Security: The email logs need read_doc_ext_lists (previously any user with edit_documents could see every address).
- FIX: Security: Sending notifications now checks that the user can edit the Document being mailed.
- FIX: Security: Adding or deleting External List addresses now checks that the user can edit the List, instead of trusting a user ID sent by the browser. Email addresses are validated.
- FIX: Security: External List address table escapes names and email addresses.
- FIX: Security: The parent/child term error on the External List screen reduces term values to IDs and escapes its messages; the missing revert_unsaved_hier() script function is added, so unsaved term changes are ticked again.
- FIX: The parent/child term check works (form term IDs were compared as text), and a List with only flat-taxonomy terms (e.g. tags) can be published.
- FIX: External Lists saved from code rather than the edit screen are no longer checked and redirected.
- FIX: Security: Multisite: each site uses only its own External Lists and mails only its own members.
- FIX: Security: Document External Lists are no longer public: not in site search, menus or the REST API.
- FIX: Security: The External log search uses a prepared query (and finds names with quotes).
- FIX: Security: Commas and angle brackets in a name can no longer add recipients.
- FIX: Security: The copy of a document made for attaching is put in a private, randomly named folder and always removed.
- FIX: Security: Log pages, settings fields and List notes escape their output.
- FIX: Security: Bulk subscribe/unsubscribe only changes users the current user may edit.
- FIX: The Email Address setting replaces WordPress’s default From address (the site domain was worked out wrongly, so it never matched).
- FIX: The plugin tables’ indexes are named, so the table check on update no longer logs “Incorrect index name” database errors.
- FIX: Auto mode works again: the Internal Notice mode was saved as 0, so automatic notices were never sent (since 3.2). A Document is mailed once, when first published, and the result is shown only to the user who published it, with a working link to the log.
- FIX: The “Notify internal users about” setting is saved and applied (it was saved empty and had no effect). Until the setting is saved again, all three kinds of Document are notified, as before.
- FIX: A user created other than on the Add New User screen (from code, an import or registration) no longer stops with “The link you followed has expired”.
- FIX: The internal log records each email’s status, and extra text sent to internal users is stored and shown in the log.
- FIX: Repeat emails to External List addresses include the %repeat% text.
- FIX: Ticking Document Attach or Pause on the External List edit screen switches it on (only switching off worked). Bulk Edit of Lists works on sites not in English. A List saved from code no longer stops with “The link you followed has expired”.
- FIX: The internal log search treats % and _ as ordinary characters.
- FIX: The Add New User screen shows the Document Email settings; they are saved if the new user’s role can receive notifications. When adding or editing another user they read “this user” rather than “me”.
- FIX: Translations in the plugin’s languages folder are loaded (it looked in includes/languages).
- FIX: The plugin works when WP Document Revisions is network-activated, and the notice that WP Document Revisions is missing is shown with the other admin notices (it was printed before the page).
- FIX: Multisite: each site’s tables are checked once, not on every admin page, and a site gets its capabilities and tables when anyone first opens its admin (only a network administrator could install the capabilities).
- FIX: Uninstall removes the capabilities from every site’s roles and from users given them directly, the External List sent flags on Documents, and the settings of every user on the network.
- FIX: Document metabox: the message when only some emails were sent no longer shows “undefined”; the Send button stays disabled and the progress icon shown until sending finishes (both were reset straight away); a failed request shows an error instead of “Sending…” for ever; the script error on every send (from
$, undefined in WordPress) is gone. - FIX: External List addresses: no script error after adding or deleting an address, no stray global variables, and the address error message is shown as text.
- FIX: Labels for the Internal Notice mode and “Notify internal users about” choices, the profile boxes and the List Quick Edit boxes (clicking the text ticks the box, and screen readers read it; the Quick Edit labels pointed at a hidden copy). The text settings are labelled by their headings, and the boxes in the Users column are named.
- FIX: List Bulk Edit offered “All taxonomy elements-“; each address row had two “Show more details” buttons on small screens.
- DEV: Script and style sources moved to src/js and src/css; minified copies are in build/js and build/css, made with
npm run build(terser, clean-css) or the Build assets workflow. Asset versions are the file times, so browsers pick up rebuilt files. - DEV: PHPUnit test suite in tests/ (see tests/test_suite.md); runs locally with script/install-wp-tests and in CI.
- DEV: WordPress Playground demo (playground/): a site with users, Documents, Document External Lists and notifications sent, from GitHub (link in docs/README.md), from the local folder (
npm run playground), and a generator for the WordPress.org Live Preview blueprint (npm run assets-blueprint). - DEV: JavaScript tests with Jest and jsdom in tests/js (
npm test), run in CI with coverage sent to Codecov (flag js; PHP has flag php). - DEV: End-to-end browser tests with Playwright in tests/e2e (
npm run test:e2e): WordPress Playground locally (npm run env:start), wp-env in CI (e2e.yml). - DEV: Tests added for the internal log, bulk subscribe/unsubscribe, External List settings, the admin screens, plugin loading, uninstall and the fixed bugs; uninstall.php is included in coverage. Class descriptions and @package tags made consistent. A duplicate loader of the bulk action class with a wrong path is removed.
- DEV: AJAX handlers reply with wp_send_json() instead of echo and die, so they can be tested.
- DEV: Plugin header version set to match the readme Stable tag.
- DEV: PHPCompatibility now checks against PHP 8.0+, the plugin’s minimum.
- DEV: CI skips translation-only changes and runs with read-only permissions.
- DEV: Generate POT workflow restricted to main and given the permissions it needs to open its PR.
3.2.2
Release date: August 26, 2026
- NEW: Test up to WP 7.1 and PHP 8.3 with WP Coding Standards 3.4 and Plugin Check 2.1
3.2.1
Release date: January 19, 2026
- NEW: Test up to WP 6.9 and PHP 8.2 with WP Coding Standards 3.3 and Plugin Check 1.8
3.2
Release date: April 18, 2025
- NEW: GitHub documentation included in plugin and explicitly linked.
- NEW: Text domain changed as plugin_check plugin complains.
- FIX: Settings sanitized on update.
- FIX: Notification-specific text message metabox reviewed.
- FIX: Filter wpdr_en_ext_attach_notice withdrawn as effectively replaced by global setting.
- FIX: Consistent use of word email (rather than e-mail)
- FIX: Review uninstall process
The full change log is in the changelog.
Follow this listing's changes (Atom feed)