@Ogba
You can use same code, but must modify functions.php in osclass pay plugin
// GET USER GROUP
function osp_get_user_group() {
if(osc_is_web_user_logged_in()) {
$group = ModelOSP::newInstance()->getUserGroup(osc_logged_user_id());
return $group;
}
return 0;
}
into:
function osp_get_user_group($user_id = -1) {
if($user_id <= 0) {
$user_id = osc_logged_user_id();
}
if($user_id > 0) {
$group = ModelOSP::newInstance()->getUserGroup($user_id);
return $group;
}
return 0;
}
Then use function:
<?php
if(osp_get_user_group(osc_item_user_id()) == 7) {
... my special code for trusted ...
}
?>