BuddyDev

Search

[Resolved] Remove activity filter option

  • Participant
    Level: Guru
    Posts: 885
    Tosin on #45506

    Hello,

    Please how can I remove the (Updates and New members) activity filter options

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #45510

    Hi Tosin,
    Depending on your theme and template pack, you may need to make some template override.

    Which template pack are you using?

    Regards
    Brajesh

  • Participant
    Level: Guru
    Posts: 885
    Tosin on #45518

    I am using the legacy template

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #45540

    Hi Tosin,
    Please put this in your bp-custom.php

    
    /**
     * Removes the Updates & new members fro activity options dropdown.
     */
    add_filter( 'bp_get_activity_show_filters_options', function ( $filters ) {
    
    	unset( $filters['activity_update'] );
    	unset( $filters['new_member'] );
    
    	return $filters;
    } );
    
    

    Let me know if it works or not?

    Regards
    Brajesh

  • Participant
    Level: Guru
    Posts: 885
    Tosin on #45547

    Thanks Brajesh

    I worked perfectly

  • Participant
    Level: Guru
    Posts: 885
    Tosin on #45548

    I was wondering if its possible to add a new filter called (Trending) which will filter the activity based on posts with the most comments like this plugin https://wordpress.org/plugins/bp-whats-hot/

    What I simply mean if you can make turn this plugin (https://wordpress.org/plugins/bp-whats-hot/) into a dropdown filter option rather than a navigation tab menu.

    I removed the activity filter tab menu through a template override in child theme but now I want the trending feature be a filter dropdown option

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #45555

    Hi Tosin,
    Thank you for the confirmation.

    I am sorry, I am not familiar with that plugin.
    You may want to approach the author for help.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved