How to disable adding listings by “Private” user role?
to make it looks like this?
Please add this code you your Child Theme functions.php file (read more about child themes here)
add_filter('vehica/user/canCreateCars', function ($canCreateCars, $user) {
/* @var \Vehica\Model\User\User $user */
if ($user->isPrivateRole()) {
return false;
}
return $canCreateCars;
}, 10, 2);