Skip to content

Instantly share code, notes, and snippets.

@caseysoftware
Last active December 14, 2015 04:59
Show Gist options
  • Select an option

  • Save caseysoftware/5032036 to your computer and use it in GitHub Desktop.

Select an option

Save caseysoftware/5032036 to your computer and use it in GitHub Desktop.
This is only part of functions.php - You can view this file in context here: https://github.com/caseysoftware/upgrading-google-voice-with-Twilio
<?php
// There is not the entire file, download the full package from Github.
{
if (in_array($number, $whitelist)) {
return true;
}
$currentHour = date('G');
if (($starttime <= $currentHour) && ($currentHour < $endtime)) {
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment