Proposing modification to enable shortcodes in the custom messages
-
Hello, I wanted to streamline my login requirement when a unauthenticated user accesses a protected page. Rather than displaying a static message like “Click here to login” I wanted to actually display the login form. In order for this to work, shortcodes entered in the custom message boxes need to be parsed by do_shortcode().
The following change makes that possible, and I’d like to propose it is added to the plugin:
simple-membership-custom-messages/classes/class.swpm-custom-message.php
Line 39 – change to:
return empty($msg)? $default : do_shortcode($msg);
https://www.ads-software.com/plugins/simple-membership-custom-messages/
- The topic ‘Proposing modification to enable shortcodes in the custom messages’ is closed to new replies.