Buddypress activity feed customisation

I building a website, and I need 2 customisations for my buddypress activity feed.


I need a code I can put in my [login to view URL], that excludes specific user_roles (role) AND (role && role) from being shown in the overall activity feed. The activity has to only be visible for site-admin and user.

I have found this code, where admin are excluded via user ID, but it needs to be changed to meet my needs:

// hide admin's activities from all activity feeds

function bpfr_hide_admin_activity( $a, $activities ) {

// ... but allow admin to see his activities!

if ( is_site_admin() )

return $activities;

foreach ( $activities->activities as $key => $activity ) {

// ID's to exclude, separated by commas. ID 1 is always the superadmin

if ( $activity->user_id == 784 ) {

unset( $activities->activities[$key] );

$activities->activity_count = $activities->activity_count-1;

$activities->total_activity_count = $activities->total_activity_count-1;

$activities->pag_num = $activities->pag_num -1;



// Renumber the array keys to account for missing items

$activities_new = array_values( $activities->activities );

$activities->activities = $activities_new;

return $activities;


add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );

At the moment I only works if I change the "if" statement to:

if ( bp_is_group() || bp_is_user() )

return $activities;


I need a extra feed entry on the buddypress/activity/entry.php. This entry has to show all activity from a specific user_role (role) AND (role && role)

I have copy pasted the code, and where the code has to be:

<?php do_action( 'template_notices' ); ?>

<div class="item-list-tabs activity-type-tabs" role="navigation">


<?php do_action( 'bp_before_activity_type_tab_all' ); ?>

<li id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'onesocial' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'onesocial' ), bp_get_total_member_count() ); ?></a></li>


<?php if ( is_user_logged_in() ) : ?>

<?php do_action( 'bp_before_activity_type_tab_friends' ); ?>

<?php if ( bp_is_active( 'friends' ) ) : ?>

<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>

<li class="selected" id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'onesocial' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'onesocial' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>

<?php endif; ?>

<?php endif; ?>

Kemahiran: HTML, Javascript, MySQL, PHP, Wordpress

Lihat lagi: I need my website re-configured.I already have a design, I just need you to build my personal website., i want to create a website and need direction, i have a website idea and i need a developer, buddypress activity stream plugin, buddypress activity filter plugin, buddypress activity stream shortcode, buddypress custom activity loop, buddypress block activity stream types, bp_has_activities( bp_ajax_querystring( 'activity' ), buddypress activity stream filter, buddypress activity loop, make a website of uttrakhand i need its leyote, my company name is nustar nustar online we sell ink and toners we are currently building a website and need a catchy logo for ou, my company name is nustar (nustar online) we sell ink and toners we are currently building a website and need a catchy logo for , need website building need website building, buddypress activity plus plugin mobile, javascript activity feed, jomsocial friends activity feed, need magento inventory data feed test website, star rating buddypress activity

Tentang Majikan:
( 2 ulasan ) Copenhagen, Denmark

ID Projek: #15382596

Dianugerahkan kepada:


I am Wordpress Rockstar from last 7+ years and have in-depth knowledge about themes, plug-in customization, blog and API elements. Relevant Skills and Experience WordPress Portfolio: Lagi

€160 EUR dalam 3 hari
(56 Ulasan)

23 pekerja bebas membida secara purata €152 untuk pekerjaan ini


Surely, We are ready to help you with customization for my buddypress activity feed. Can we discuss little more? We are ready to start the work now! Relevant Skills and Experience Please review our profile and past w Lagi

€147 EUR dalam 3 hari
(331 Ulasan)

Hi sir, How are you? I read your description carefully and i am very interesting in your project. We are the great IT solution team with solid experiences in these fields. I hope we to work together. Relevant Skills a Lagi

€155 EUR dalam 3 hari
(111 Ulasan)

Hello, I have gone through the entire requirement. It will take around 3 to 4 Working Days to do those BuddyPress Customizations. We are ready to start immediately Relevant Skills and Experience 1) https://apollovisio Lagi

€187 EUR dalam 4 hari
(135 Ulasan)

Hi! I'm interesting your project very well. i mastering PHP and javascript. And also I have many experience and good skill about web and android development. Let's go ahead with me Stay tuned, I'm still working on t Lagi

€155 EUR dalam 3 hari
(239 Ulasan)

Wordpress customization Relevant Skills and Experience Respected Sir, We have 7+ year exp in php and wordpress. We have expertise in content management system in wordpress. Proposed Milestones €95 EUR - Project

€95 EUR dalam 3 hari
(140 Ulasan)

Relevant Skills and Experience i'm krishan, with more than 7 years of experience in Graphic Design, psd-html, jqery, HTML5, javascript, bootstrap, css, psd-wordpress, jpeg-html. Relevant Skills and Experience Our port Lagi

€155 EUR dalam 3 hari
(72 Ulasan)

Hello there, I am interested and ready to start, lets discuss with details. Relevant Skills and Experience I have more than 7 + years experience in designing websites using Photoshop, HTML, CSS, JS, Bootstap, JQuer, Lagi

€277 EUR dalam 7 hari
(25 Ulasan)

Hi, Available to customisations of your BuddyPress activity feed. I am available to start immediately. Relevant Skills and Experience experienced with BuddyPress Proposed Milestones €155 EUR - .

€155 EUR dalam 3 hari
(30 Ulasan)

HI there, I would love to assist you for both of this tasks as I have all the required expertise and skill set available for performing this job. Share me link of your website so I could review it. Relevant Skills and Lagi

€155 EUR dalam 3 hari
(28 Ulasan)

Hi, I went through your requirement and feel comfortable to do this job. I have good experience in website design & development. Please initiate chat to discuss further. Relevant Skills and Experience PHP, Word press, Lagi

€155 EUR dalam 3 hari
(25 Ulasan)

Hello, Please give me a chance. If you choose me I will do it with lower price. If you give me a chance , you will get all . Payment isn’t important for me but a good feedback is valuable. Relevant Skills and Experien Lagi

€200 EUR dalam 3 hari
(11 Ulasan)

.hello sir, I'have read your project and got know that you want us to build a website Relevant Skills and Experience . I want to infrom you that we are Infraveo having 25+ full stack developers and 15+ system admins Lagi

€120 EUR dalam 5 hari
(5 Ulasan)

Hi Greetings ! I have gone through all of your requirements and details you have provided. I had accomplised this work and delivered to my many a past clients. Relevant Skills and Experience H Lagi

€188 EUR dalam 3 hari
(3 Ulasan)

Dear sir, I have a team of expert developer and designer who can give make any kind of application with their skill set. Relevant Skills and Experience [login to view URL] [login to view URL] http://205. Lagi

€155 EUR dalam 3 hari
(7 Ulasan)
€155 EUR dalam 3 hari
(2 Ulasan)

Hi, we can decide rates from your side (price can be negotiated) I understood your requirement I have knowledge in this filed 5+ yr so many projects I have done. Relevant Skills and Experience kindly let me know in br Lagi

€111 EUR dalam 3 hari
(1 Ulasan)

Hey, I am an Academic writer, with 2 years of experience with skills at graphic design and illustration. I read your project and I believe I can help you with this task. I have notable experience in writing contents fo Lagi

€244 EUR dalam 7 hari
(0 Ulasan)
€52 EUR dalam 3 hari
(0 Ulasan)

Hello, I have seen your requirements. I have done so many projects before and win clients's trust. I can also do ypur project. Please come on chat for detail discussion. Relevant Skills and Experience Hello, I have se Lagi

€44 EUR dalam 3 hari
(0 Ulasan)

BuddyPress Feed Customization Relevant Skills and Experience I can customize the BuddyPress Feed. I will customize the attached code. Proposed Milestones €166 EUR - 20% upfront next 50% after half of project and the Lagi

€166 EUR dalam 2 hari
(0 Ulasan)