Twilio_Helpers::credentials_updated()
credentials_updated
Return Return
(void)
Source Source
File: src/integrations/twilio/helpers/twilio-helpers.php
public function credentials_updated() { $client = $this->get_client(); $account_credentials = $client['account_sid'] . ':' . $client['auth_token']; $new_credentials_hash = base64_encode( $account_credentials ); $old_credentials_hash = get_option( 'uap_automator_twilio_api_credentials_hash', time() ); if ( $new_credentials_hash !== $old_credentials_hash ) { update_option( 'uap_automator_twilio_api_credentials_hash', $new_credentials_hash ); return true; } return false; }
Expand full source code Collapse full source code View on Github