/**
* CORE SENDING FUNCTION (Version 3.2 - DNS Optimized)
*/
function cm_send_whatsapp($phone, $template) {
$token = trim(get_option('cm_api_key'));
$phone = preg_replace('/\D/', '', $phone);
$body = [
"phone" => $phone,
"template_name" => $template,
"language" => "en",
"body_params" => [ home_url() ]
];
// We use the 'app' subdomain which usually resolves better than 'api' on some Indian hosts
$url = "https://app.chatmitra.com/api/v2/client/send_template";
return wp_remote_post($url, [
'method' => 'POST',
'headers' => [
'Authorization' => 'Bearer ' . $token,
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'body' => json_encode($body),
'timeout' => 30,
'sslverify' => false // Helps if your local SSL certificate is clashing with Wordfence/Server
]);
}
PULSAR N160/250 CRASHGUARD D21R – Performance Bikes
PULSAR N160/250 CRASHGUARD D21R
₹2,600.00
Did you like this product? Add to favorites now and follow the product.
Have a Question? Connect with us through the chat button
Low Prices
Price match guarantee
Guaranteed Fitment.
Always the correct part
In-House Experts.
We know our products
Easy Returns.
Quick & Hassle Free
Description
THIS CRASH GUARD IS SUITABLE FOR:
Reviews
There are no reviews yet.