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

Content Protection

Simple Membership Plugin › Forums › Simple Membership Plugin › Content Protection

Tagged: protect custom field content

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 6 months ago by startsmartnow.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 5, 2015 at 7:15 pm #3848
    hprajapati
    Participant

    I am using Advanced Custom Field for some of my contents, but when I turn on the Content Protection that only the content inside of the editor will be lock.

    I want everything will be lock when it is on and that make sense.
    Screenshot attach:
    http://s30.postimg.org/71on80u2n/image.png
    http://s11.postimg.org/kcld2dsch/image.png
    http://s13.postimg.org/54tajrydh/image.png

    Thanks.

    November 6, 2015 at 1:36 am #3855
    nur
    Participant

    Hi,
    simple membership works with plugins that are build around “the_content” hook. ACF has its own implementation which is not supported in simple membership

    November 20, 2015 at 7:52 pm #4093
    startsmartnow
    Participant

    Hi,

    If you know how to edit the template, you can just wrap this code around any custom field content in your template:

    <?php if(SwpmMemberUtils::is_member_logged_in()) { ?>
    //Your message for logged-in members goes here
    <?php } ?>

    I did this to protect content created by WP Types custom fields. My page template code looks like this…

    <?php if(SwpmMemberUtils::is_member_logged_in()) { ?>

    <?php echo types_render_field(“photos”); ?>
    Price: $<?php echo types_render_field(“price”); ?>
    <?php echo types_render_field(“order-form-code”, array(“output”=>”raw”)); ?>
    </div>

    <?php } ?>

    I hope that makes sense.

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