- This topic has 3 replies, 3 voices, and was last updated 6 years, 1 month ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Edit [swpm_mini_login] Widget Text
Tagged: [swpm_mini_login]
I’m looking for how I can edit the text within the [swpm_mini_login] widget? It reads as:
Login Here | Not a member? Join Now
and I’d like to modify what it says slightly.
Any thoughts and direction appreciated!
We will try to add this to the custom messages addon in the next release.
For the time being, you can modify the following function’s PHP code to customize it:
simple-membership/classes/shortcode-related/class.swpm-shortcodes-handler.php
Look for the following function:
swpm_show_mini_login_sc
Thank you!
you probably already solved it, but this might help someone else – rather than customising the plugin and losing changes on update. Put it in a little site specific plugin, and modify the shortcode’s output. e.g. I use the mod_swpm_login_form shortcode, instead of swpm_login_form
//Replace the [swpm_login_form] shortcode output with something else
function shortcode_mod_swpm_login_form(){
$output=do_shortcode(‘[swpm_login_form]’); //Get the standard shortcode’s output
//do stuff with the strings here, replace this, remove that, etc
return $output;
}
add_shortcode(‘mod_swpm_login_form’, ‘shortcode_mod_swpm_login_form’);`