AF/UM integration question re: admin user
Quote from WilliamDaugherty on September 18, 2026, 4:27 pmHi,
I’m running Asgaros Forum alongside Ultimate Member on a new WordPress site. Everything is working well, but I have one question about the Members list.
My WordPress “admin” account (the site owner/backend account, not an actual forum participant) shows up in the Asgaros Members list, since it’s a registered WP user. I understand Asgaros pulls from WordPress’s own user table by design, and that there’s no per-user exclusion — only the option to disable the whole Members list feature.
Is there any supported way (filter, hook, or setting) to exclude one specific user ID from the Members list without turning the feature off entirely? I’d like to keep the Members list active for my real forum members, just without the backend admin account appearing in it.
Thanks for a great plugin — happy to provide more detail if useful.
Hi,
I’m running Asgaros Forum alongside Ultimate Member on a new WordPress site. Everything is working well, but I have one question about the Members list.
My WordPress “admin” account (the site owner/backend account, not an actual forum participant) shows up in the Asgaros Members list, since it’s a registered WP user. I understand Asgaros pulls from WordPress’s own user table by design, and that there’s no per-user exclusion — only the option to disable the whole Members list feature.
Is there any supported way (filter, hook, or setting) to exclude one specific user ID from the Members list without turning the feature off entirely? I’d like to keep the Members list active for my real forum members, just without the backend admin account appearing in it.
Thanks for a great plugin — happy to provide more detail if useful.
Quote from AlexR80 on September 19, 2026, 10:44 amHello @williamdaugherty,
I did some research on my own, asking Claude AI for help, and he may have given me the answer. In any case, it works for me (https://forum.saintseiya.fr).
It seems to be a plugin bug.
You need to modify the file wp-content/plugins/asgaros-forum/includes/forum-user-query.php while we wait for @asgaros to look into the problem and fix it in the next version.Don’t forget to backup your file before !!
Ligne 168-178 dans le fichier original — le bloc complet concerné :
if ($role !== false) {
$meta_sql = “SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = ‘wp_capabilities’ AND meta_value LIKE ‘%\”{$role}\”%’”;$found_user_ids = $wpdb->get_col($meta_sql);
if (!empty($found_user_ids)) {
$sql[‘where’][] = ‘u.ID IN (‘.implode(‘,’, wp_parse_id_list($found_user_ids)).’)’;
} else {
$sql[‘where’][] = ‘1 = 0’;
}
}Devient :
if ($role !== false) {
// CORRECTIF : le nom de la meta clé des capacités WordPress dépend
// du préfixe de table configuré ({$wpdb->prefix}capabilities),
// et n’est PAS toujours littéralement “wp_capabilities”.
// On utilise aussi $wpdb->prepare() pour échapper correctement $role.
$capabilities_key = $wpdb->prefix . ‘capabilities’;$meta_sql = $wpdb->prepare(
“SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = %s AND meta_value LIKE %s”,
$capabilities_key,
‘%”‘ . $wpdb->esc_like($role) . ‘”%’
);$found_user_ids = $wpdb->get_col($meta_sql);
if (!empty($found_user_ids)) {
$sql[‘where’][] = ‘u.ID IN (‘.implode(‘,’, wp_parse_id_list($found_user_ids)).’)’;
} else {
$sql[‘where’][] = ‘1 = 0’;
}
}
Hello @williamdaugherty,
I did some research on my own, asking Claude AI for help, and he may have given me the answer. In any case, it works for me (https://forum.saintseiya.fr).
It seems to be a plugin bug.
You need to modify the file wp-content/plugins/asgaros-forum/includes/forum-user-query.php while we wait for @asgaros to look into the problem and fix it in the next version.
Don’t forget to backup your file before !!
Ligne 168-178 dans le fichier original — le bloc complet concerné :
if ($role !== false) {
$meta_sql = “SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = ‘wp_capabilities’ AND meta_value LIKE ‘%\”{$role}\”%’”;$found_user_ids = $wpdb->get_col($meta_sql);
if (!empty($found_user_ids)) {
$sql[‘where’][] = ‘u.ID IN (‘.implode(‘,’, wp_parse_id_list($found_user_ids)).’)’;
} else {
$sql[‘where’][] = ‘1 = 0’;
}
}
Devient :
if ($role !== false) {
// CORRECTIF : le nom de la meta clé des capacités WordPress dépend
// du préfixe de table configuré ({$wpdb->prefix}capabilities),
// et n’est PAS toujours littéralement “wp_capabilities”.
// On utilise aussi $wpdb->prepare() pour échapper correctement $role.
$capabilities_key = $wpdb->prefix . ‘capabilities’;$meta_sql = $wpdb->prepare(
“SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = %s AND meta_value LIKE %s”,
$capabilities_key,
‘%”‘ . $wpdb->esc_like($role) . ‘”%’
);$found_user_ids = $wpdb->get_col($meta_sql);
if (!empty($found_user_ids)) {
$sql[‘where’][] = ‘u.ID IN (‘.implode(‘,’, wp_parse_id_list($found_user_ids)).’)’;
} else {
$sql[‘where’][] = ‘1 = 0’;
}
}
Uploaded files:
Quote from WilliamDaugherty on September 19, 2026, 3:01 pmBonjour Alex. This looks very promising! I will take a closer look later today. Let’s hope @asgaros addresses this in an official capacity, et merci!
Bonjour Alex. This looks very promising! I will take a closer look later today. Let’s hope @asgaros addresses this in an official capacity, et merci!
Quote from AlexR80 on September 22, 2026, 3:36 pmI hope too @williamdaugherty
I hope too @williamdaugherty

