문제

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.

도움이 되었습니까?

해결책

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top