Create BP_Messages_Message object
-
Hello, I am trying to create object of ‘BP_Messages_Message’ to get the recipients. I tried the following code on ‘messages_message_after_save’ hook:
$message = new BP_Messages_Message; print_r($message);
from the above code I am getting the following results:
BP_Messages_Message Object ( [id] => [thread_id] => [sender_id] => 1 [subject] => [message] => [date_sent] => 2015-02-16 07:10:20 [recipients] => ).
Why am I getting blank values in other fields ? Do I need pass any parameters while creating the object?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Create BP_Messages_Message object’ is closed to new replies.