Skip to content

Instantly share code, notes, and snippets.

@bamadesigner
Created February 28, 2016 03:05
Show Gist options
  • Save bamadesigner/e5ae0092aa15bc4df3c1 to your computer and use it in GitHub Desktop.
Save bamadesigner/e5ae0092aa15bc4df3c1 to your computer and use it in GitHub Desktop.
How to see the data without sending a test Slack
//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;
}
@mathetos
Copy link

This is great. Just what I needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment