Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2,665 Commits

Repository files navigation

TestDevelopStable

Notification

Notification banner

This is the public repository for Notification - the WordPress plugin.

This plugin allow you to send custom notifications about various events in WordPress. It also comes with simple yet powerful API by which you can add literally any trigger action.

By default it supports Email, Webhook and Webhook plain JSON notifications.

Default Triggers

Comment, Pingback, Trackback and Custom Comment Type

This covers all the comment types. Use comment, pingback, trackback, another_comment_type instead of the {comment_type_slug}.

Trigger nameTrigger slug
Comment addedcomment/{comment_type_slug}/added
Comment approvedcomment/{comment_type_slug}/approved
Comment repliedcomment/{comment_type_slug}/replied
Comment spammedcomment/{comment_type_slug}/spammed
Comment trashedcomment/{comment_type_slug}/trashed
Comment unapprovedcomment/{comment_type_slug}/unapproved
Comment publishedcomment/{comment_type_slug}/published
Media
Trigger nameTrigger slug
Media addedmedia/added
Media trashedmedia/trashed
Media updatedmedia/updated
Plugin
Trigger nameTrigger slug
Plugin activatedplugin/activated
Plugin deactivatedplugin/deactivated
Plugin installedplugin/installed
Plugin removedplugin/removed
Plugin updatedplugin/updated
Post, Page and Custom Post Type

This covers all the custom post types, as well. Use post, page, product, another_post_type instead of the {post_type_slug}.

Trigger nameTrigger slug
Post addedpost/{post_type_slug}/added
Post saved as a draftpost/{post_type_slug}/drafted
Post sent for reviewpost/{post_type_slug}/pending
Post approvedpost/{post_type_slug}/approved
Post publishedpost/{post_type_slug}/published
Post trashedpost/{post_type_slug}/trashed
Post updatedpost/{post_type_slug}/updated
Post scheduledpost/{post_type_slug}/scheduled
Category, Tag and Custom Taxonomy

This covers all the taxonomies. Use category, post_tag, another_taxonomy instead of the {taxonomy_slug}.

Trigger nameTrigger slug
Taxonomy term createdtaxonomny/{taxonomy_slug}/created
Taxonomy term deletedtaxonomny/{taxonomy_slug}/deleted
Taxonomy term updatedtaxonomny/{taxonomy_slug}/updated
Theme
Trigger nameTrigger slug
Theme installedtheme/installed
Theme switchedtheme/switched
Theme updatedtheme/updated
User
Trigger nameTrigger slug
User deleteduser/deleted
User loginuser/login
User login faileduser/login_failed
User logoutuser/logout
User password changeduser/password_changed
User password reset requestuser/password_reset_request
User profile updateduser/profile_updated
User role changeduser/role_changed
WordPress
Trigger nameTrigger slug
Available updateswordpress/updates_available
WordPress updatedwordpress/updated
Privacy
Trigger nameTrigger slug
Personal Data erasedprivacy/data-erased
Personal Data erase requestprivacy/data-erase-request
Personal Data exportedprivacy/data-exported
Personal Data export requestprivacy/data-export-request

Extensibility

The Notification plugin have multiple APIs which gives you the ability to customize the plugin. The most important ones are:

  • Trigger API - you can wrap any WordPress' do_action into a Trigger.
  • Carrier API - you can register a custom Carrier, like a service connection. Carriers are independent from Triggers and works with all default and custom Triggers out of the box. It's packed with configuration form builder.
  • Recipient API - you can register a custom Recipients for your Carriers. Like automatically pulled users from external database or simply custom user query with meta etc.
  • Resolver API - you can create another Merge Tag resolver, ie. {customtag param1} which is handled differently than a standard Merge Tag.
  • Settings API - for quick plugin Settings registration

Bundling the plugin

You can ship this plugin as a part of your plugin or theme. Just copy the plugin directory into your folder and require load.php file. Read more about the plugin bundling and plugin loading stack.

White labeling

You can integrate this plugin with your system with a simple white labeling, it's a single notification_whitelabel() function to call. Read the full white labeling documentation.

Quick links

Development version

You can download build development version from the Development workflow. Click the latest run and download generated artifact.

Releases

Packages

Used by

Contributors

Languages