We'll create fresh WordPress site with External Notification installed. You have 20 minutes to test the plugin after that site we'll be deleted.
External Notification is a plugin that allows users to send a notification to Slack.
Also it has useful hooks for developers.
When WordPress sends a notification email for site administrators, this plugin sends the message to slack instead of an email.
This feature can be disabled from the administration screen.
There are 2 ways to use the plugin as the API.
1. Call the ready-to-use external_notification2slack function
external_notification2slack($message, $user_id, $payload)
2. If another plugin will use this to post slack, it is best to use this option instead of calling external_notification2slack function to avoid Fatal Error in case this plugin is deactivated.\
do_action( 'external_notification2slack', $message, $user_id, $payload );
if you install & activete our another plugin ‘App Log’, outputs an error message to the log file.