mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fix excluded users
This commit is contained in:
@@ -1690,6 +1690,9 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
|
||||
$this->query_args['meta_query'][] = $meta_query;
|
||||
if ( ! empty( $exclude_users ) ) {
|
||||
if ( ! empty( $this->query_args['exclude'] ) ) {
|
||||
$exclude_users = array_unique( array_merge( $exclude_users, $this->query_args['exclude'] ) );
|
||||
}
|
||||
$this->query_args['exclude'] = $exclude_users;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user