bp_nouveau_ajax_search_recipients_exclude_current( $user_query )
Exclude logged in member from recipients list.
Description
Source
File: bp-templates/bp-nouveau/includes/messages/ajax.php
function bp_nouveau_ajax_search_recipients_exclude_current( $user_query ) { if ( isset( $user_query['exclude'] ) && ! $user_query['exclude'] ) { $user_query['exclude'] = []; } $user_query['exclude'][] = get_current_user_id(); return $user_query; }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.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.