• Hi community!

    If I’m not mistaken, usernames in comments don’t have links unless someone has given a website address in the submitted form or in their profile in some way. Otherwise, the username stays non-clickable.

    I’d like to replace both options (non clickable/no link as well as link to website) with the link to the users bbpress profile page.

    Does anyone know where I can do that?

    Thank you 🙂

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It really depends on your theme. Many themes just call wp_list_comments(), some don’t. Even those that call wp_list_comments() can alter the result in various ways. Assuming your theme just lets the default behavior happen, you can alter the comment author’s link through the “get_comment_author_link” filter. Your callback is passed the link HTML, the author name, and comment ID. That should be enough to figure out if they have a bbpress profile and what the URL would be. Then replace the href attribute with the profile URL and return the modified link HTML.

Viewing 1 replies (of 1 total)
  • The topic ‘Where can I modify profile links?’ is closed to new replies.