Last active
August 29, 2015 14:15
-
-
Save BoweFrankema/82e400ecba4f97d87aa8 to your computer and use it in GitHub Desktop.
Show the @mention username under your BBPress user avatars (https://bp-tricks.com/snippets/show-the-mention-username-under-your-bbpress-user-avatars)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function bptricks_add_handle (){ | |
echo '<span class="bbp-user-nicename"><span class="handle-sign">@</span>'. bp_core_get_username(bbp_get_reply_author_id(bbp_get_reply_id())) .'</span>' ; | |
} | |
add_action( 'bbp_theme_after_reply_author_details', 'bptricks_add_handle' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment