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

rwdrummond

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

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • October 6, 2016 at 2:42 am in reply to: Does SWPM Member ID always match WP User ID? #8468
    rwdrummond
    Participant

    Thanks for confirming that, and for the quick response.

    June 2, 2016 at 3:43 pm in reply to: Set post protection via PHP? #7088
    rwdrummond
    Participant

    Thanks for pointing me in the right direction. I’ll see if I can sort through it!

    June 1, 2016 at 3:50 pm in reply to: Set post protection via PHP? #7081
    rwdrummond
    Participant

    Thanks, but that’s not what I’m asking. Let me see if I can give a better description of what I’d like to do.

    I have an existing member who is logged in. I created am HTML form with a textbox – when the member submits the form, I create a new post (by calling wp_insert_post) using the contents of the textbox as the post content. So what I have done is to allow this member to post to the site without having access to the admin back-end. This is all working.

    When I create the new post, it is of course, not protected by SWPM. So everyone can see it regardless of whether they are logged in. What I would like to do is to apply SWPM protection to this post, restricting it to a given membership level(s). I can edit the post and do that manually, but I need to do it programmatically when creating the post.

    So in essence, my question is, what database changes occur when you select the “Yes, Protect this content” radio button and check one or more membership levels? I want to write a PHP function to allow me to enable content restriction for a given post ID to a given membership level(s).

    I’m sure the capability is there, if the developers can point me to the right class/function?

    Hope that’s clear!

    January 27, 2016 at 10:55 pm in reply to: Retrieve Profile Image and Custom Fields? #5029
    rwdrummond
    Participant

    Thanks for the response and for providing the PHP and CSS samples. I was able to trace through the tables to find the custom field values for each of my membership levels, so writing the SQL to pull the “complete” profile including the image and custom fields was pretty trivial.

    January 25, 2016 at 5:11 pm in reply to: Upload profile image from Admin page? #5002
    rwdrummond
    Participant

    Thanks for considering the request. Hope it is feasible.

    January 25, 2016 at 5:11 pm in reply to: bbPress Forum Integration question #5001
    rwdrummond
    Participant

    Perfect! Thanks for the quick response.

    January 5, 2016 at 4:15 pm in reply to: Lookup Member ID by name? #4772
    rwdrummond
    Participant

    Thanks for the quick response. Good point about the name not being unique! Again, thanks for a great plugin!

    January 5, 2016 at 12:28 am in reply to: Lookup Member ID by name? #4758
    rwdrummond
    Participant

    Thanks for the suggestion, mbrsolution – that is a great example of what I want to do, but it requires knowing the member’s ID. What I’m looking for is a way for a member to look up another member’s ID (preferably by first & last name) in order to retrieve the other member’s profile info.

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