BP_Notifications_Notification::delete_by_id( int $id )
Delete a single notification by ID.
Description Description
See also See also
- BP_Notifications_Notification::delete(): for explanation of return value.
Parameters Parameters
- $id
-
(Required) ID of the notification item to be deleted.
Return Return
(int|false) True on success, false on failure.
Source Source
File: bp-notifications/classes/class-bp-notifications-notification.php
public static function delete_by_id( $id ) {
return self::delete( array(
'id' => $id,
) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |