BP_Notifications_Notification::delete_by_id( int $id )
Delete a single notification by ID.
Description
See also
- BP_Notifications_Notification::delete(): for explanation of return value.
Parameters
- $id
-
(Required) ID of the notification item to be deleted.
Return
(int|false) True on success, false on failure.
Source
File: bp-notifications/classes/class-bp-notifications-notification.php
public static function delete_by_id( $id ) { return self::delete( array( 'id' => $id, ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.9.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.