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

How to use Show specific content to a particular member php tweak

Simple Membership Plugin › Forums › Simple Membership Plugin › How to use Show specific content to a particular member php tweak

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 3 months ago by mbrsolution.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 8, 2015 at 5:45 pm #2987
    roadto100
    Participant

    I am just wondering how can I use this php code

    Show specific content to a particular member

    The following code will show a message to the member if his/her ID is “2”:

    $member_id = SwpmMemberUtils::get_logged_in_members_id();
    if ($member_id == “2”){
    echo “Hi, your member ID is 2”;
    }

    Where should I paste this php

    September 8, 2015 at 10:50 pm #2990
    mbrsolution
    Moderator

    Hi, that code needs to be added to one or more of your theme templates. Depending on which theme you have installed it will have different templates for pages and maybe even post.

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