Display Profile Picture as a Custom Field
Show profile picture inside the profile with larger view and custom design.
Basic Usage of Profile Picture as a Custom Field
By default, user profile picture is shown inside the header with limited dimensions. UPME version 2.0.19 and upwards provides the ability to show profile picture inside the profile in a larger view with custom design using following filter.
add_filter( 'upme_profile_display_user_pic', 'upme_profile_display_user_pic', 10, 2); function upme_profile_display_user_pic($display,$params){ $display .= '<div class="upme-field upme-view upme-user_pic"> <div class="upme-field-type"> <i class="upme-icon-camera"></i> <span>' . __('Profile Picture','upmehooks') .'</span> </div> <div class="upme-field-value"> <span><img src="' . get_user_meta($params['user_id'], $params['meta'] ,true) . '" /></span> </div> </div>'; return $display; }