Skip to content

Instantly share code, notes, and snippets.

View nsotosca's full-sized avatar

Nahue nsotosca

View GitHub Profile
@champsupertramp
champsupertramp / Ultimate Member 2.0 - Add Profile Photo in Register Form
Created June 2, 2019 13:15
Ultimate Member 2.0 - Add Profile Photo in Register Form
/**
* Add new predefined field "Profile Photo" in UM Form Builder.
*/
add_filter("um_predefined_fields_hook","um_predefined_fields_hook_profile_photo", 99999, 1 );
function um_predefined_fields_hook_profile_photo( $arr ){
$arr['profile_photo'] = array(
'title' => __('Profile Photo','ultimate-member'),
'metakey' => 'profile_photo',