Adding custom user specific content to profile body
I am tinkering with some tricks shown here: https://usersinsights.com/buddypress-custom-profile/.
It has been mostly successful and straight forward more or less. The examples in the link adds customized content to the user’s HEADER section however (where Avatar & last-active time is shown) using:
add_action( ‘bp_profile_header_meta’, ‘my_function’ );
How might I add actions to the main body of a profile page (i.e. in the Base profile section [before and after])? I’ve tried substituting ‘bp_profile_header_meta’ with the other hooks shown in the tutorial i.e.:
add_action( ‘bp_before_profile_content’, ‘my_function’ );
add_action( ‘bp_before_member_activity_content’, ‘my_function’ );
but none of them displays the content within the main body of the profile. Please help.
Thanks in advance.
- You must be logged in to reply to this topic.