Concern:
The customer wants to disable the LookBook notification (the profile image gallery for the Buddypress/ Buddyboss profiles).
Resolution:
By default, there is no built-in option for this. You can use the following function code. Please see the steps below:
1. Navigate to WordPress dashboard – Appearance – Theme Editor.
2. Under Select theme to edit, choose (BuddyBoss Child/whatever theme is active), then click Select.
3. Below Theme Files, select Theme Functions (functions.php).
4. Append the code just before the closing PHP tag “?>”:
// Disable lookbook notifications
function disable_lookbook_notifications() {
remove_action('bp_activity_add_notification', 'bp_buddyboss_profile_add_notification');
}
add_action('bp_init', 'disable_lookbook_notifications');
4. Save changes.