Vcard Setup


This extension enables the user to generate Vcard when they register or save their profile and download the VCard.vcf file. For the installation guide of this plugin, you can read it here.


Once the plugin is activated, you need to add the predefined field in the Profile Form. Go to wp-admin> Ultimate Member> Forms> Edit Profile Form. Click on the plus "+" sign button from the form builder to add a field.

Select Vcard in the predefined fields from the fields manager and click the Update button to save changes.

When a user registers or saves their profile, it will generate a VCard.vcf file, and then a VCard icon will be displayed in their Profile for users to download the file. You can import the vCard or .vcf file to the Contacts Application in Mac OS, Google Contacts, and Outlook in Windows OS.

The sample image below is the downloaded Vcard in Mac Contacts Application.

Action hook

You can use the action hook um_vcard_before_save to add extra fields to the VCard. See the example below:

add_action('um_vcard_before_save','um_vcard_add_nickname', 10, 2 ); 
function um_vcard_add_nickname( $vcard_obj, $user_id ){    
	$vcard_obj->add( new Nickname( um_user('nickname' ) ) );