Skip to content

Instantly share code, notes, and snippets.

@BoweFrankema
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoweFrankema/82e400ecba4f97d87aa8 to your computer and use it in GitHub Desktop.
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)
<?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