Created
February 28, 2016 03:05
-
-
Save bamadesigner/e5ae0092aa15bc4df3c1 to your computer and use it in GitHub Desktop.
How to see the data without sending a test Slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Rock the Slackbot Customizations | |
add_filter( 'rock_the_slackbot_notification', 'edd_sales_slack_notification', 10, 3 ); | |
function edd_sales_slack_notification( $notification, $notification_event, $event_args ) { | |
echo "<pre>"; | |
print_r( $notification ); | |
echo "</pre>"; | |
exit; | |
// Change the pieces | |
$notification[ 'payload' ][ 'text' ] = 'Test Message'; | |
// Return the notification | |
return $notification; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great. Just what I needed. Thanks!