BP_Messages_Message::get_recipients()
Get a list of recipients for a message.
Description
Return
(object) $value List of recipients for a message.
Source
File: bp-messages/classes/class-bp-messages-message.php
public function get_recipients() { global $wpdb; $bp = buddypress(); return $wpdb->get_results( $wpdb->prepare( "SELECT user_id FROM {$bp->messages->table_name_recipients} WHERE thread_id = %d", $this->thread_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.