Title: Shortcode message parameter
Last modified: September 22, 2016

---

# Shortcode message parameter

 *  [sagetopia](https://wordpress.org/support/users/sagetopia/)
 * (@sagetopia)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/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](https://wordpress.org/support/users/wild-apricot/)
 * (@wild-apricot)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/shortcode-message-parameter/#post-8272032)
 * 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.

 * ![](https://ps.w.org/wild-apricot-login/assets/icon.svg?rev=2630828)
 * [Wild Apricot Login](https://wordpress.org/plugins/wild-apricot-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wild-apricot-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wild-apricot-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wild-apricot-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wild-apricot-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wild-apricot-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Wild Apricot](https://wordpress.org/support/users/wild-apricot/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/shortcode-message-parameter/#post-8272032)
 * Status: not resolved