BuddyDev

Search

[Resolved] Remove "Favourite" Button in the Activity

  • Participant
    Level: Enlightened
    Posts: 146
    Dandy Jefferson on #8402

    Hi, there

    Thanks for previous helps and I’m very appreciated about that.

    I’m wondering are there any ways to remove “Favourite” Button in the Activity?

    Thanks.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2445
    Ravi on #8403

    Hello Dandy,

    Thank you for posting. Yes it can be easily achievable use the following code in your bp-custom.php file

    
    function buddydev_hide_favourite_button() {
    	return false;
    }
    add_filter('bp_activity_can_favorite', 'buddydev_hide_favourite_button' );
    
    

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 146
    Dandy Jefferson on #8404

    Hi, Ravi

    Thanks for your reply and solution. It works as charm.

    Thanks a million and have a good day!

You must be logged in to reply to this topic.

This topic is: resolved