I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: Hiding the error “User is not logged in!”

dashed-slug.net Forums General discussion Hiding the error “User is not logged in!” Reply To: Hiding the error “User is not logged in!”

#9348
alexg
Keymaster

Hello,

Unfortunately the [wallets_rates] shortcode currently uses the JSON-API, which is available only to logged in users. Therefore it’s not possible at this time to display this shortcode to non-logged in users. This is something that will be solved in wallets 6.0.0, with some architectural changes.

In the meantime, if you simply want to hide the error from users who are not logged in, there are two ways to do this:

UI elements that display an error gain the error class. Therefore you can add the following to your CSS rules to hide it:

.dashed-slug-wallets.error { display: none; }

Alternatively, you can use a WordPress filter to modify the text of the error. The filter is wallets_ui_text_shortcode_error. To see an example of how to use it, you can look at the documentation, under “Frontend” -> “Template Modifications” -> “Shortcode rendering error messages”.

Hope this helps. Please let me know if I misunderstood your question.

with regards