BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall Remove Like Button

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #38754
    @parallaxstudios

    Hi

    Im using a separate plugin for like, how do i disable the like function in BuddyBoss Wall?

    Answers

    #38799

    Alyssa
    Participant
    @alyssa-buddyboss

    @parallaxstudios add this code to your child theme functions.php file:

    add_filter( 'bp_activity_can_favorite', '__return_false' );
    add_filter( 'bp_get_total_favorite_count_for_user', '__return_false' );
    
    function bp_admin_bar_render_remove_favorites() {
        global $wp_admin_bar;
        $wp_admin_bar->remove_menu('my-account-activity-favorites');
        
    }
    add_action( 'wp_before_admin_bar_render', 'bp_admin_bar_render_remove_favorites' );
    #38843
    @parallaxstudios

    Worked, thank you

    #38864

    Alyssa
    Participant
    @alyssa-buddyboss

    No Problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Remove Like Button’ is closed to new replies.