Send a Text Notification for App Events with Twilio

Getting notified of new posts, updated posts, new timeline posts and all of those important notifications is key to running your Voxel themed directory. Twilio is powerful and very inexpensive to send texts out for important information. In order to do so, follow these instructions:

  1. Navigate to the backend of your site and go to Voxel > App Events.
  2. Click on the notification you want to have sent via Twilio.
  3. Open the accordion and click on “Advanced”.
  4. Copy all of that information and paste it into the functions.php file of your Voxel Child Theme. If you do not have a child theme setup, visit this article to learn how.
  5. Where it says “// your custom code…” paste the following code and get rid of the “// your custom code…”

Be sure to replace all of the necessary information where needed including Account SID, Auth Token, Twilio number with leading country code, and the destination number with country code. Feel free to customize the message under the destination number to further enhance the message.