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 themessage
param and use the default as a fallback?
- The topic ‘Shortcode message parameter’ is closed to new replies.