Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eMember – Php code to check if a post is protected

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Php code to check if a post is protected

Tagged: members, protected posts

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 8 months ago by wzp.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 6, 2014 at 9:45 pm #11747
    Jeremy
    Member

    Is there anyway to access is a post is protected or not from logged in users? I want to display a lock icon for protected posts but I can’t seem to figure out how to determine if a post is protected using php.

    I did look over this post https://support.tipsandtricks-hq.com/forums/topic/emember-is-it-possible-to-check-if-post-is-protected but it was no help in what I am looking for.

    November 6, 2014 at 10:08 pm #66628
    Jeremy
    Member

    Sorry my question was typed out slightly wrong, should of been,

    Is there anyway to find out if a post is protected wether the user is logged in or not?

    November 6, 2014 at 10:30 pm #66629
    wzp
    Moderator

    Yes:

    https://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ