Replies
Ah it doesn’t work for me sadly:
The php:
add_action( 'bp_after_has_members_parse_args', function ( $args ) { if ( bp_is_members_directory() ) { $args['meta_key'] = '_has_avatar'; $args['meta_value'] = 1; } return $args; } );
still shows the users in the recently active despite having the BuddyPress Force Profile Photo plugin.
Any suggestions on what I can do the the code?
I have the BuddyPress Force Profile Photo plugin, but the bots just sit there in in recently active after sign up with mystery man avatars.
It’s good that they cannot do anything 🙂 but bad that they fill up the recently active buddypress widget 🙁
I will look at the other suggestions and link now too.
THANK YOU!!
It actually works amazingly! 🙂
Ravi, I can’t thank you enough! Loving the BuddyDev products, and many of them are paid.
It’s an honor to be part of the BuddyDev community, sir.
Best,
Kristian
Thank you Brajesh!
By the way, only yours works when the Youzer devs offered their code.
You really are a master in what you do.
Thank you so much sir.
It’s such an honor to know to you :,)
Kristian
Hi again Ravi,
thank you so much for getting back to me. Your code is amazing, but one small issue:
As I worked on this all evening and found after a while that it looks like I need that in user IDs rather than admins.
I have Admins hidden, and redirect rules if you try to access them.
so actually this all would work if your code would require specific user IDs
The user ID i need for this is 340
kind regards to you, sir.
Kristian
Hi Ravi,
Thank you so much for getting back to me. Sadly, it doesn’t work.
I put it in my BP custom file. is that alright, or must this go in the functions?
Any other suggestions?