Return instead of echo

Look at bp_group_request_user_avatar_thumb() in this file /bp-groups/bp-groups-template.php. It has a filter hook. In your filter function, add the $html parameter and set it to false and it should return just an url to the avatar. Then you can wrap it in a href and img tag manually. Or you could write a call directly to … Read more

Get rid of the word private in bbpress forums names

AFAIR BBPress relies on WP functions with these titles, so most probably this will be helpful: function remove_private_prefix_from_title( $title ) { return ‘%s’; } add_filter( ‘private_title_format’, ‘remove_private_prefix_from_title’ ); And here you can find docs for that filter: private_title_format

Hide BBPress create topic on one page

This took as surprisingly long time but I managed to figure it out: fieldset.bbp-form { display: none; } .page-id-170 * fieldset.bbp-form { display: block !important; } I know this hides all and only shows on page id 170, and this is the opposite of what I asked but it suits my needs. An answer more … Read more

Save meta box data from selected dropdown list in bbpress reply form

I add a show contents part referring to a workable previous post with link https://bbpress.org/forums/topic/add-custom-text-fields-to-reply-form/. The below code can provide options for the user to selection. But the selection result could not be shown. I am not sure whether the selection result was added into metabox properly because I can not use the debug function. … Read more