WordPress.org

Ready to get started?Download WordPress

Forums

Members
[resolved] Feature request: Set a constant on restricted content (3 posts)

  1. scottconnerly
    Member
    Posted 3 years ago #

    In members_content_permissions_protect( ) please set some sort of global variable or constant that I can check for later in my template files. I'd like to be able to control the reaction to not being able to view the content in a more granular fashion than just rewriting the $content.

  2. Justin Tadlock
    Member
    Plugin Author

    Posted 3 years ago #

    There's conditional functions for this in version 0.2 beta. Check it out:
    http://justintadlock.com/archives/2011/06/01/members-plugin-beta-testing

    members_can_user_view_post()
    members_can_current_user_view_post()
  3. scottconnerly
    Member
    Posted 3 years ago #

    Sweet. Looking forward to it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags