- Timestamp:
- 03/20/2025 07:10:28 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/12.0/src/bp-notifications/actions/bulk-manage.php
r13112 r14107 41 41 42 42 // Delete, mark as read or unread depending on the user 'action'. 43 $result = bp_notifications_bulk_manage_notifications( $action, $notifications ); 44 45 // Set message depending on the user 'action'. 43 46 switch ( $action ) { 44 47 case 'delete': 45 bp_notifications_delete_notifications_by_ids( $notifications );46 48 bp_core_add_message( __( 'Notifications deleted.', 'buddypress' ) ); 47 49 break; 48 50 49 51 case 'read': 50 bp_notifications_mark_notifications_by_ids( $notifications, false );51 52 bp_core_add_message( __( 'Notifications marked as read', 'buddypress' ) ); 52 53 break; 53 54 54 55 case 'unread': 55 bp_notifications_mark_notifications_by_ids( $notifications, true );56 56 bp_core_add_message( __( 'Notifications marked as unread.', 'buddypress' ) ); 57 57 break;
Note: See TracChangeset
for help on using the changeset viewer.