Home

Awesome

Test Develop Stable

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

<details> <summary>Comment, Pingback, Trackback and Custom Comment Type</summary>

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
</details> <details> <summary>Media</summary>
Trigger nameTrigger slug
Media addedmedia/added
Media trashedmedia/trashed
Media updatedmedia/updated
</details> <details> <summary>Plugin</summary>
Trigger nameTrigger slug
Plugin activatedplugin/activated
Plugin deactivatedplugin/deactivated
Plugin installedplugin/installed
Plugin removedplugin/removed
Plugin updatedplugin/updated
</details> <details> <summary>Post, Page and Custom Post Type</summary>

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
</details> <details> <summary>Category, Tag and Custom Taxonomy</summary>

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
</details> <details> <summary>Theme</summary>
Trigger nameTrigger slug
Theme installedtheme/installed
Theme switchedtheme/switched
Theme updatedtheme/updated
</details> <details> <summary>User</summary>
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
</details> <details> <summary>WordPress</summary>
Trigger nameTrigger slug
Available updateswordpress/updates_available
WordPress updatedwordpress/updated
</details> <details> <summary>Privacy</summary>
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
</details>

Extensibility

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

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.