This commit is contained in:
Lizandro Guarnizo
2026-02-03 21:30:55 -05:00
parent 44423adb32
commit 1aae148396
89 changed files with 8581 additions and 7687 deletions
+5
View File
@@ -628,6 +628,10 @@ function saveWhatsAppConfigToDB($whatsappConfig) {
$success &= saveConfigToDB('whatsapp_phone_number_id', $whatsappConfig['phone_number_id']);
}
if (isset($whatsappConfig['business_account_id'])) {
$success &= saveConfigToDB('whatsapp_business_account_id', $whatsappConfig['business_account_id']);
}
if (isset($whatsappConfig['api_url'])) {
$success &= saveConfigToDB('whatsapp_api_url', $whatsappConfig['api_url']);
}
@@ -657,6 +661,7 @@ function getWhatsAppConfigFromDB() {
'token' => getConfigFromDB('whatsapp_token', ''),
'whatsapp_token' => getConfigFromDB('whatsapp_token', ''),
'phone_number_id' => getConfigFromDB('whatsapp_phone_number_id', ''),
'business_account_id' => getConfigFromDB('whatsapp_business_account_id', ''),
'api_url' => getConfigFromDB('whatsapp_api_url', 'https://graph.facebook.com/v22.0/'),
'whatsapp_api_url' => getConfigFromDB('whatsapp_api_url', 'https://graph.facebook.com/v22.0/'),
'webhook_verify_token' => getConfigFromDB('webhook_verify_token', ''),