Reply To: [Resolved] hiding “whats-new-form” in member activity but NOT in Groups
@5high Yep! You’re right. The form is now build separately. To hide it conditionnaly, it’s much easier as previously.
What you have to do from now on, is to add a condition on the template part call.
The form template file is post-form.php (activity/post-form.php)
On each activity template (swa, members, groups,…), there a call to this file. bp_get_template_part( 'activity/post-form' );
To solve your problem, you have just to add the condition you want for this call.
In your case, as you want to disallow the form only on swa and on member’s activity, you modify
child-theme/buddypress/activity/index.php (site wide activity) and child-theme/buddypress/members/single/activity.php (profile activity)
For example i hide the form to any user except site admin by using:
if ( is_user_logged_in() && is_super_admin() )
bp_get_template_part( 'activity/post-form' );
Hope to be clear ! 😉