Question

I am trying to create a custom theme for BuddyPress and in the template the buddypress/members/single/member-header.php file at line 45 there are buttons rendered using <?php do_action( 'bp_member_header_actions' ); ?>

After a lot of searching around I found out that I should be able to use filters to add custom data to elements, the problem is that I can't find anywhere as to what filter to use or how to use such a filter to add a custom class to these buttons.

The buttons I am talking about are the buttons like "Add Friend", "Public Message" and "Private Message" and I would like to add the "btn" class.

Any help is greatly appreciated.

Was it helpful?

Solution

Check out these filters:

bp_get_add_friend_button
bp_get_send_public_message_button
bp_get_send_message_button_args

EDIT: Updated (see comments)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top