Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi,

    You can use the following code to modify the profile fields:

    add_filter("um_profile_field_filter_hook__","um_custom_profile_field_filter",10,2);
    function um_custom_profile_field_filter( $value, $data ){
    // do something
    }

    Let me know if this helps.

    Regards,

    Thread Starter bania

    (@bania)

    Hello. Thank you for respond.
    When i put your code into functions.php, then I get a info that the profile is empty.
    Perhaps it has to be written a filter code, but Im not programmer and dont know how to do it.

    Thread Starter bania

    (@bania)

    Hello. Thank you for respond.
    When i put your code into functions.php, then I get a info that the profile is empty.
    Perhaps it has to be written a filter code, but Im not programmer and dont know how to do it.

    Plugin Author Ultimate Member

    (@ultimatemember)

    Hi Bania,

    Do you have a developer to implement customizations of the plugin?

    Thanks

    Thread Starter bania

    (@bania)

    I got it.
    First check the meta key for that form field. Edit your profile form in wp-admin > ultimate member > forms. Then open the email form field and take note of “Meta Key” value. Then add a filter to um_profile_field_filter_hook__{meta_key} to update how the value is diplayed. NOTE: Please update the {meta_key} to the field’s meta key.

    Example:
    In your theme’s functions.php, add the code below:

    // this filter removes the mailto anchor tag for user_email fields.
    add_filter(‘um_profile_field_filter_hook__user_email’, ‘strip_tags’, 10, 10);

    Thanks

    Plugin Author Ultimate Member

    (@ultimatemember)

    Thanks for letting us know ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plain text E-mail adress in profile’ is closed to new replies.