latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Disable user on submit

Home Forums Community Forum Disable user on submit

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 4 years, 4 months ago.

Topic Author Topic
Posted: Friday Aug 31st, 2012 at 5:13 pm #23744
Mike Waller
Username: seozones

I’m building an online application and after user submits the form, I want to log them out and disable them from logging back in. Is there a status (active or inactive) field in the backend s2member database table where a user can’t log back in if I set it to inactive?

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Friday Aug 31st, 2012 at 5:36 pm #23748
Bruce
Username: Bruce
Staff Member

Hi Mike,

s2Member simply builds onto WordPress’s user functionality, but does not have the functionality you’re looking for. However, you could create another meta value using get_user_meta() and it’s accompanying functions. Then you can run this functionality.

Unfortunately this functionality cannot be hooked into functions like current_user_can() because WordPress does not have any filters within capabilities.php.

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.