Title: Profile field encoding
Last modified: October 8, 2018

---

# Profile field encoding

 *  [kranzl](https://wordpress.org/support/users/kranzl/)
 * (@kranzl)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/profile-field-encoding/)
 * Hi,
    in the past, your profile fields were propoerly encoded with the plugin “
   Email Address Encoder”, which hooks on the_content().
 * Can you please help me how I can assign a filter for the email fields of the 
   profile page again?
 * Thx,
    Axel

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Ultimate Member Support](https://wordpress.org/support/users/ultimatemembersupport/)
 * (@ultimatemembersupport)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/profile-field-encoding/#post-10766926)
 * Hi [@kranzl](https://wordpress.org/support/users/kranzl/),
 * Unfortunately, I don’t understand your question, can you please clarify what 
   you are trying to achieve?
 * Regards.
 *  Thread Starter [kranzl](https://wordpress.org/support/users/kranzl/)
 * (@kranzl)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/profile-field-encoding/#post-10767172)
 * Hi,
    I would like to add a filter function to encode email adresses on the front
   page.
 * When I hack it into your plugin souce file um-filters-fields.php it works:
    function
   um_profile_field_filter_hook__( $value, $data, $type = ” ) { … if ( !is_array(
   $value ) ) { if ( is_email( $value ) ) $value = ‘<\A…>’.eae_encode_emails($value).'
   </\A>’;
 * I tried then to do it the clean way and add the filter but don’t succeed:
 * function my_profile_field( $value, $data ) {
    return eae_encode_emails($value);}
   add_filter( ‘um_profile_field_filter_hook__user_email’, array( $this, ‘my_profile_field’),
   10, 2 );
    -  This reply was modified 7 years, 8 months ago by [kranzl](https://wordpress.org/support/users/kranzl/).
    -  This reply was modified 7 years, 8 months ago by [kranzl](https://wordpress.org/support/users/kranzl/).
    -  This reply was modified 7 years, 8 months ago by [kranzl](https://wordpress.org/support/users/kranzl/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Profile field encoding’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kranzl](https://wordpress.org/support/users/kranzl/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/profile-field-encoding/#post-10767172)
 * Status: not resolved