class Notification_Data_AccessCRUD and query operations for notifications.
class final
- Full name
Kernowdev\Clanbite\Extensions\Notification\Notification_Data_Access
Constants
| Name | Value | Description |
|---|---|---|
STATUS_PENDING | 'pending' | |
STATUS_ACCEPTED | 'accepted' | |
STATUS_DECLINED | 'declined' | |
STATUS_DISMISSED | 'dismissed' | |
STATUS_EXPIRED | 'expired' |
Methods
delete_all_for_user()Delete all notifications for a user.delete_by_object()Delete notifications by object (e.g., when a team is deleted).delete()Delete a notification.execute_action()Execute an action on a notification.exists()Check if a similar notification already exists (deduplication).get_for_user()Get notifications for a user.get_unread_count()Get unread count for a user.get()Get a notification by ID.insert()Insert a new notification.mark_all_read()Mark all notifications as read for a user.mark_read()Mark a notification as read.update_status()Update notification status.
Defined in inc/extensions/notifications/class-notification-data-access.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |