[Plugin: SimpleModal Login] No forms when logged in?
-
I noticed that the login/registration/reset forms are all included regardless of the login status. As I can’t think of a good reason to have them printed to the page when the user is logged in, I removed them using the provided filters.
Hopefully I’m not breaking something, but assuming I’m not this might be good default behavior?
if (is_user_logged_in()){ add_filter('simplemodal_login_form', 'blank_simplemodal_form'); add_filter('simplemodal_registration_form', 'blank_simplemodal_form'); add_filter('simplemodal_reset_form', 'blank_simplemodal_form'); function blank_simplemodal_form($form) {} }
The topic ‘[Plugin: SimpleModal Login] No forms when logged in?’ is closed to new replies.