BP_Messages_Message::__construct( int|null $id = null )
Constructor.
Description
Parameters
- $id
-
(Optional) ID of the message.
Default value: null
Source
File: bp-messages/classes/class-bp-messages-message.php
public function __construct( $id = null ) { $this->date_sent = bp_core_current_time(); $this->sender_id = bp_loggedin_user_id(); if ( ! empty( $id ) ) { $this->populate( $id ); } }
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.