Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2024 05:55:47 PM (8 months ago)
Author:
espellcaste
Message:

Messages: filter threads by recipient IDs.

bp_has_message_threads (and the BP REST API) can filter thread(s) messages by recipient IDs. Very useful when trying to identify if a member already messaged another.

Props imath and slaFFik.

See https://github.com/buddypress/BP-REST/issues/455
Closes https://github.com/buddypress/buddypress/pull/394
See #9229 and #9145
Fixes #9157

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/classes/class-bp-messages-box-template.php

    r14061 r14069  
    169169                'max'                 => false,
    170170                'search_terms'        => '',
     171                'includes'            => array(),
    171172                'meta_query'          => array(),
    172173                'recipients_page'     => null,
     
    201202                    'page'                => $this->pag_page,
    202203                    'search_terms'        => $this->search_terms,
     204                    'includes'            => $r['includes'],
    203205                    'meta_query'          => $r['meta_query'],
    204206                    'recipients_page'     => $r['recipients_page'],
Note: See TracChangeset for help on using the changeset viewer.