BP_Messages_Notice::__construct( int|null $id = null )
Constructor.
Description
Parameters
- $id
-
(Optional) The ID of the current notice.
Default value: null
Source
File: bp-messages/classes/class-bp-messages-notice.php
public function __construct( $id = null ) {
if ( $id ) {
$this->id = (int) $id;
$this->populate();
}
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.0.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.