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: 2487
    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!

  • Participant
    Level: Initiated
    Posts: 9
    Alex on #46737

    Hi,

    Is there a way to remove the favourite button but only for the author of the post? To prevent members liking their own posts

    Thanks

    Alex

  • Keymaster
    (BuddyDev Team)
    Posts: 22172
    Brajesh Singh on #46741

    Hi Alex,
    Please open a new topic and link this one. Please avoid posting in old topics as the original author gets notified of the replies, and It may be inconvenient for them.

    Thank you
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved