• Resolved Eibe

    (@eibe96)


    Hello,

    My website has a profile page for each user and I would like to add a link to the name shown under the post creator’s avatar. The link should redirect to example.com/users/$user/ (where $user is the post creator username).

    I know that it can’t be added as a feature as not everyone has user profile page. Consequently, I would like to ask if you could tell me where I should (if I can) tweak the code to add such a small feature (I tried to browse through some .php files but I couldn’t see anything relevant – I am not a “pro” coder).

    Thank you for your help

    https://www.ads-software.com/plugins/asgaros-forum/

Viewing 1 replies (of 1 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello eibe96,

    there is an action hook which allows you to add some additional functionality under the post creator’s avatar (after the name and the posts counter).

    It is called:
    asgarosforum_after_post_author

    You can use it like this (for example in your themes functions.php):

    add_action('asgarosforum_after_post_author', 'my_function', 10, 1);
    
    function my_function($author_id) {
    	// your code ...
    }

Viewing 1 replies (of 1 total)
  • The topic ‘User profile link’ is closed to new replies.