%1$s
', __('Custom Avatar' , 'affiliatepress'), __('Custom Avatar URL' , 'affiliatepress'), esc_attr(get_user_meta($user->ID, 'custom_avatar_url', true)) ); } function save_custom_user_profile_fields($user_id) { if (!isset($_POST['user_meta_edit_nonce']) || !wp_verify_nonce($_POST['user_meta_edit_nonce'], 'user_meta_edit')) exit; if (!current_user_can('edit_user', $user_id)) return FALSE; $custom_avatar = (isset($_POST['custom_avatar_url'])) ? $_POST['custom_avatar_url'] : ''; update_user_meta($user_id, 'custom_avatar_url', $custom_avatar); }