I need some help!
When a member on my site stops paying, their membership expires, or they cancel, the plugin still allows sign in access on wp-login.php, which sends them directly to the back end control panel.
What i need, is for them to be ALLOWED to log in, but, RESTRCICT access to the back end control panel depending upon their "status". This should make more sense in a second.
information.
Table: wp_pmpro_memberships_users
Field: user_id
Field: status
Data within status field: Canceled, Inactive, Active,
(possibly others, but those are what i see)
field "user_id" MATCHES "ID" from "wp-users"
So, what i need is, for wp-login.php to differentiate between "status" levels.
if status = "Active" redirect to "Dashboard "
else KILL/RESTRICT ALL ACCESS to Dashboard and REDIRECT to "membership page".
at which time, they can renew their membership and re-enable dashboard access.
or is there a membership based plugin that does this already????? I assume not, because, it seems like you have to change core files to accomplish this. Either way, i need this to be 100% automated.
Please help. !!
P.S. unfortunately, i need working code, not theory. I’m not a great programmer. I know it’s a lot to ask, but, i am in desperate need of assistance in this and can’t afford to pay what people are asking to accomplish this.