Hello,
I own Social Link, currently running tests. Is it possible to set the prefix +33 by default for WhatsApp ?
Many Thanks
Hello,
I own Social Link, currently running tests. Is it possible to set the prefix +33 by default for WhatsApp ?
Many Thanks
Hi,
Unfortunately, there is no such feature, it will require a custom implementation. If customizations are required for your site, please try customizing it using the collection of code snippets https://gist.github.com/search?q=user%3Ahivepress and other developer resources, or consider hiring someone for custom work Experts | HivePress
Hello,
Many thanks for your answer.
And with this code ?
add_filter( 'hivepress/v1/models/listing/attributes', 'custom_hp_set_countries', 1000 );
add_filter( 'hivepress/v1/models/vendor/attributes', 'custom_hp_set_countries', 1000 );
function custom_hp_set_countries($attributes){
if(isset($attributes['whatsapp'])){
$attributes['whatsapp']['edit_field']['country'] = 'FR';
}
return $attributes;
}
Hi,
Yes, the snippet looks good. If you have WhatsApp enabled in your Social Links settings, everything should work correctly.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.