Hi Ramon,
I am referring to the code for hiding activity.Hiding from the form should be simple.
Hi Ramon,
Sure. I will share the activity code in next 1-2 days.The code for form was shared by @ravisharma and I am going to ask him to support you with that.
Regards
BrajeshHi Ramon,
My apology for missing this topic.1. Please remove the code suggested by Ravi above.
2. Please find out the name(not the label, It is the unique name) for each allowed member types. Let us say, they are ‘student’, ‘teacher’.
We can put the following code in bp-custom.php
/** * Restrict allowed member types in search. */ add_filter( 'bpmtp_profile_search_form_allowed_member_types', function ( $types ) { return array( 'student', 'teacher', //add your own. ); } );
Please feel free to add/remove the member types as you please.
Regards
BrajeshThank you for confirming that it worked.
To hide activities for certain users, Please see
https://buddydev.com/support/forums/topic/hide-activities-of-admins-editors-in-activitiy-stream/#post-24982Regards
Brajesh
You must be logged in to reply to this topic.