• Resolved mrmocha

    (@mrmocha)


    Hello,

    When a new user registers to my site, I want to include an email to the admin that has a link to the user’s profile in the admin.

    I have set up a notification for New User Registration – For Admin (although I’m sending it to a user with the Editor role) and I’m using [user_url] in the email, but it’s returning empty. Any idea why that might be?

    Thanks for any help.

    • This topic was modified 5 years, 6 months ago by mrmocha.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @mrmocha,
    Thanks for your message.

    The [user_url] shortcode is the link to the user’s website and as this isn’t added during registration, it will output blank.

    If you want to include a link to your user, you’ll need to reconstruct the WP Admin URL using the user’s ID.
    Something like this should work:
    <a href="https://www.yoursite.com/wp-admin/user-edit.php?user_id=[user_id]">Link to New User</a>

    Hope this helps.

    Thread Starter mrmocha

    (@mrmocha)

    That works perfectly, thank you very much ??

    Plugin Author bnfw

    (@voltronik)

    Hi @mrmocha,
    No probs!

    If you like BNFW and the support, please feel free to leave an honest review.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[user_url] is empty’ is closed to new replies.