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] Feature request: Partial protection centralized custom message

Simple Membership Plugin › Forums › Simple Membership Plugin › Feature request: Partial protection centralized custom message

  • This topic has 5 replies, 3 voices, and was last updated 10 months, 3 weeks ago by admin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • September 5, 2025 at 3:45 am #31433
    jayallen_uj
    Participant

    Hi,

    I love partial protection and am using it on all our posts in order to show a teaser preview.

    The problem is that I have a detailed custom message for each protected post that includes links to how to subscribe and register for our program. If I have to change this message, I have to change it on all partial protected posts.

    DESIRED: I’d love it if the partial protection message could be one of the fields you can customize using the Custom Message plugin. It would also be nice if this message has a custom CSS class so I can style it via Appearance->Customize in WP.

    Thanks,

    Jay

    September 5, 2025 at 10:16 pm #31438
    The Assurer
    Moderator

    Perhaps you are looking for a plugin like this?
    https://wordpress.org/plugins/shortcode-variables/

    September 12, 2025 at 10:16 pm #31504
    jayallen_uj
    Participant

    I don’t think so. This looks like it can represent any custom HTML/CSS snippet as a shortcode. I want the custom_msg property of swpm_protected to be a centrally defined variable so I only have to define a common custom message in one place for every partially protected post.

    EDIT: Tried a similar plugin (Shortcoder) and confirmed this doesn’t work. The message renders but Simple Membership Plugin doesn’t protect the rest of the post. Pretty sure that this is because I’m using a shortcode to output a shortcode.

    September 12, 2025 at 11:55 pm #31507
    The Assurer
    Moderator

    You have already tried customizing the Partial Protection Addon messages?
    https://simple-membership-plugin.com/apply-partial-section-protection/

    So… what you are asking for is to define these customized messages with some kind of global message variable?

    September 13, 2025 at 12:04 am #31508
    jayallen_uj
    Participant

    Yes, I’m using that feature. The problem is I use the *exact same message* for every post I partially protect:

    `[swpm_protected custom_msg='<span class=”uj-insider-protected”>The rest of this article is for Insider subscribers only…..</span>’]`

    We currently have 25 posts partially protected (and growing!). This means that, if I ever have to change this message, I need to change it in 25+ posts manually. That’s not ideal.

    My request is for the default partially protected post message to be customizable using the Custom Message plugin so that I only have to ever change it in a single location.

    Does this make sense?

    September 13, 2025 at 12:08 am #31511
    admin
    Keymaster

    That’s a good idea. We will add an option for it so that default protection message from the partial protection addon can be customized via the custom messages addon.

    September 30, 2025 at 1:40 am #31596
    admin
    Keymaster

    We’ve updated the Partial Protection and Custom Messages addons to allow customization of the default message shown by the Partial Protection addon.

    https://simple-membership-plugin.com/apply-partial-section-protection/

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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