Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/03/2018 11:26:40 PM (19 months ago)
Author:
imath
Message:

Nouveau: make sure the starred box is reachable by the Messages UI

Props r-a-y

Fixes #7809

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-star.php

    r11925 r12055  
    365365}
    366366add_filter( 'bp_get_the_thread_message_css_class', 'bp_messages_star_message_css_class' );
     367
     368/**
     369 * Filter message threads by those starred by the logged-in user.
     370 *
     371 * @since 2.3.0
     372 *
     373 * @param  array $r Current message thread arguments.
     374 * @return array $r Array of starred message threads.
     375 */
     376function bp_messages_filter_starred_message_threads( $r = array() ) {
     377    $r['box'] = 'starred';
     378    $r['meta_query'] = array( array(
     379        'key'   => 'starred_by_user',
     380        'value' => $r['user_id']
     381    ) );
     382
     383    return $r;
     384}
Note: See TracChangeset for help on using the changeset viewer.