Can non-administrator users edit all BuddyPress activity posts?

Get Started

By default, only administrators have the ability to edit all BuddyPress activity posts. Users with other roles can typically edit only their own activities, unless additional permissions are granted.

If you want to allow a specific user role to edit all activity posts, you can use the following custom code. In this example, we’ve used the “editor” role, but you can replace it with any role you need. This code snippet will grant the selected role permission to edit activities created by other users:

/**
* Wbcom Designs : Allow other user roles to edit activity
*/
add_filter( 'buddypress_can_edit_activity', 'wbcom_designs_allow_other_roles_to_edit_activity', 10, 2 );
function wbcom_designs_allow_other_roles_to_edit_activity( $can_edit, $activity ) {
if ( current_user_can( 'editor' ) ) {
$editable_types = apply_filters( 'bp_editable_types_activity', [ 'activity_update' ] );
if ( in_array( $activity->type, $editable_types, true ) && ! empty( $activity->content ) ) { 
return true;
}
}
return $can_edit;
}

Last updated: July 7, 2025