bp_messages_filter_starred_message_threads( array $r = array() )
Filter message threads by those starred by the logged-in user.
Description
Parameters
- $r
-
(array) (Optional) Current message thread arguments.
Default value: array()
Return
(array) $r Array of starred message threads.
Source
File: bp-messages/bp-messages-star.php
function bp_messages_filter_starred_message_threads( $r = array() ) { $r['box'] = 'starred'; $r['meta_query'] = array( array( 'key' => 'starred_by_user', 'value' => $r['user_id'] ) ); return $r; }
Changelog
Version | Description |
---|---|
BuddyPress 2.3.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.