if( $userob->in_group( 3 ) ) {
}
Is anyone out there using the in_group check successfully? I'm running 7.2.2 and it doesn't seem to work for me.
I've got a simple conditional check:
if ($userob->is_logged_in ) {
if (in_array($userob->fields['USER_ID'], $authors)) {
$allow = 1;
} elseif ($userob->in_group(5)) {
$allow = 1;
} else {
$allow = 0;
}
}
which fails, even though a user is part of group id 5. The individual ID check works fine though.