hellocoop / wordpress

A login and registration WordPress plugin for the Hellō service.
4 stars 2 forks source link

Conditionally hide Hello login button for loggedin users #87

Open guruhuey opened 1 year ago

guruhuey commented 1 year ago

Is your feature request related to a problem? Please describe. I've just integrated the plugin with a BB Press forum I have installed on one of my sites. I removed the WP Reg/Login and replaced it with the short code for the Hello login. After I have logged in to the site, the forum shows as expected to registereed users, and other than first time users having to sign in and get their Hello wallet, it's as simple as before.

Describe the solution you'd like I'd like it such that if the user has a loggedin session, the Hello button is hidden.

Describe alternatives you've considered Even if I funnel all users to a single page where the login happens, on that page should be a list of forums... and the button still showing on the page where I used the short code. Ideally the login button should be included on all public pages with forums or posts, and where comments are restricted to logged in users, so that we can drive users from semi-public pages, to registration.

Additional context Am sure there are other things to be considered here, such as do we just hide the button, or do we replace it with some other text/html, or even perhaps replace it with a logout button, wallet management of recovery id's, or something similar.