Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Edit [swpm_mini_login] Widget Text

Simple Membership Plugin › Forums › Simple Membership Plugin › Edit [swpm_mini_login] Widget Text

Tagged: [swpm_mini_login]

  • This topic has 3 replies, 3 voices, and was last updated 6 years, 1 month ago by quick_dry.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 6, 2020 at 1:57 pm #19573
    GFoisy
    Participant

    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!

    January 7, 2020 at 3:06 am #19575
    admin
    Keymaster

    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
    
    January 10, 2020 at 12:33 am #19587
    GFoisy
    Participant

    Thank you!

    March 3, 2020 at 4:52 pm #19865
    quick_dry
    Participant

    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’);`

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy