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
You are here: Home

startsmartnow

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • November 20, 2015 at 7:52 pm in reply to: Content Protection #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 1 post (of 1 total)
Next Page »

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