bp_messages_filter_starred_message_threads( array $r = array() )

Filter message threads by those starred by the logged-in user.

Parameters Parameters


(array) (Optional) Current message thread arguments.

Default value: array()

Top ↑

Return Return

(array) $r Array of starred message threads.

Source 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;

Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.