Social Links Whatsapp - Hide Countries

I am focusing my platform to one country. I am wondering how can I leave only one country in the country code selection of WhatsApp Social Link.

Please try this PHP snippet but please note that it can require further customization. It sets the United States as the default country. If you want to change it to another country then please ISO code of your country and change the US in this code snippet

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){
		$attributes['whatsapp']['edit_field']['countries'] = ['US'];
	return $attributes;

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.