About 1. Are we talking about this:
https://cldup.com/p00vWmeNFl.png
Because if that’s the case, BuddyPress doesn’t provide a title attribute into its navigation API. So it seems difficult to accomplish as there’s no hover text at all.
About 2. The only ‘do_action’ available in BuddyPress is after the delete button unfortunately. So unless you’re doing some funky stuff in JS, or override the activity entry into your theme, seems difficult to accomplish.
About 3. I guess you can always use specific CSS rules.
About 4. From the BuddyPress options you can use a unique Reactions subnav. Else you can always use this kind of code:
function bryanbatcher_hide_subnav() {
if ( ! function_exists( 'bp_reactions' ) ) {
return;
}
bp_reactions()->temp_hide = array( 'favorite' => true );
foreach ( bp_reactions()->temp_hide as $key => $hide ) {
if ( ! isset( bp_reactions()->reactions[ $key ] ) ) {
continue;
}
bp_reactions()->temp_hide[ $key ] = bp_reactions()->reactions[ $key ];
unset( bp_reactions()->reactions[ $key ] );
}
}
add_action( 'bp_activity_setup_nav', 'bryanbatcher_hide_subnav', 9 );
function bryanbatcher_restore_reactions() {
if ( ! function_exists( 'bp_reactions' ) ) {
return;
}
bp_reactions()->reactions = array_merge( bp_reactions()->reactions, bp_reactions()->temp_hide );
}
add_action( 'bp_activity_setup_nav', 'bryanbatcher_restore_reactions', 11 );
Thanks for the quick reply.
For the hover text, I meant the reaction button on the activity. There’s hover text there. And then when you go to the profile there is the tab (as in your picture). I’d like those to be different if that’s possible.
Thanks for the other answers. Your help is greatly appreciated!
Oh i see. Ok i’ll need to include another argument into the reaction registration function in next release.
You’ll be able to follow my progress about it from there: https://github.com/imath/bp-reactions/issues/9
Awesome. I’ll keep a look out. Thanks!