BuddyPress: Add All Countries to Your Custom Profile Field
Here is a code that all social network owners built with BuddyPress have been impatiently waiting for. A function which allows you to add all the countries in the world at once, rather than doing it manually, in a field entitled “Country” and in which the member of your network can select their country.