Support » Plugin: Wild Apricot Login » Shortcode message parameter

  • I’ve encountered an issue which is not necessarily a bug, hopefully you can shed light on whether or not this is intentional behavior. The message parameter of the wa_restricted shortcode works fine if someone is not logged in. However, if someone is logged in but does not fulfill the role requirement as specified in the shortcode, a default error message is shown. This message is registered as a protected class property and isn’t affected by the parameter or any admin settings. It seems to me that you should be able to define one error message across the board whether a user is logged in or not. Unless there is a specific reason for this, could you change the render function to use the message param and use the default as a fallback?

Viewing 1 replies (of 1 total)
  • Plugin Author Wild Apricot

    (@wild-apricot)

    Thank you for getting in touch.

    Unfortunately, the error message (Access denied) is default and not customizable. But we agree with you that it makes sense to include it into shortcode params.

    We will let you know when this will be added to the plugin.

    Ekaterina Tyukina, Funny Apricot

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode message parameter’ is closed to new replies.