BP_Notifications_Notification::__construct( int $id )
Constructor method.
Description
Parameters
- $id
-
(Optional) Provide an ID to access an existing notification item.
Source
File: bp-notifications/classes/class-bp-notifications-notification.php
public function __construct( $id = 0 ) { if ( ! empty( $id ) ) { $this->id = (int) $id; $this->populate(); } }
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.