• 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

    (@ultimatemembersupport)

    Hi @kranzl,

    Unfortunately, I don’t understand your question, can you please clarify what you are trying to achieve?

    Regards.

    Thread Starter kranzl

    (@kranzl)

    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 6 years, 5 months ago by kranzl.
    • This reply was modified 6 years, 5 months ago by kranzl.
    • This reply was modified 6 years, 5 months ago by kranzl.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Profile field encoding’ is closed to new replies.