• Dear UM support team,

    i found that the value wont show up on welcome email when i add the tag {description} in the HTML template. i am wondering if it is available and how to make it available. Would you please advise the solutions on it?

    thanks a lot!

    • This topic was modified 7 years, 10 months ago by kennethhkg.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @kennethhkg,

    You can add more user tags using existing UM filter hooks in the link (see line 495 and 515):

    https://github.com/ultimatemember/ultimatemember/blob/master/core/um-shortcodes.php

    Thanks.

    Thread Starter kennethhkg

    (@kennethhkg)

    HI @ultimatemembersupport,

    Thank you for the information, i can located the code as mentioned, however since i am quite green on modifying plugin coding, would you please confirm if i editing it correctly? Because when i saved the changes, it still showing blank when the welcome mail is sent.

    first i added ‘{description}’ as below

    $pattern_array = array(
    ‘{first_name}’,
    ‘{last_name}’,
    ‘{display_name}’,
    ‘{user_avatar_small}’,
    ‘{username}’,
    ‘{description}’,
    );

    then i also insert the code as below

    if ($usermeta == ‘username’) {
    $value = um_user(‘user_login’);
    }
    if ($usermeta == ‘description’) {
    $value = um_user(‘description’);
    }

    Am i doing it correctly?

    • This reply was modified 7 years, 10 months ago by kennethhkg.
    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @kennethhkg,

    We do not recommend making any changes in the core files as it will be overwritten on plugin updates. You will need to use the um filter hooks from the link we have provided. However, we are not able to provide any support when it comes to customizing the plugin. If you need help implementing this code, please hire a developer.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add mail tag in template’ is closed to new replies.