Hide Messages For Guest Users

By default, messages page is publicly available however messages are not rendered and this can confuse users that are not logged in when trying to access it.ย  A generic 404 page may show up as well.

To mitigate this problem, you can use additional arguments to [peepso_messages] shortcode.
They are:

1. [peepso_messages guest_behavior="silent"]
2. [peepso_messages guest_behavior="login"]

Silent Behavior #

If you decide to use first shortcode for the messages page, once users that are not logged in try to open the messages page, they will not see anything. It will be just an empty space where messages should be.

Login Behavior #

Second shortcode option is by far superior because it forces the display of login form on the page where messages should be.

 

What are your feelings
Updated on October 4, 2023