Okay, seems like I really have to learn more about PHP. Via google I found https://wordpress.stackexchange.com/questions/60272/find-out-if-logged-in-user-is-not-subscriber. That gave me a rough idea, but I did not manage to change the code for a redirect.
However, I found a workaround. I placed the following code…
<?php if (…[Read more]
Here is a solution to exclude users, that are not logged in: https://buddypress.org/support/topic/hide-profile-from-non-logged-in-users/#post-147745.
But how to exclude/redirect users, that have the user role “subscriber”? Redirect might be working with
<?php wp_redirect( home_url() ); exit; ?
Would be great to tell my users, if their role changes from “subscriber” to “member”. Because than they are able to use more features.
@jesus-1 active 3 years, 4 months ago