Forums

[resolved] Extending authentication to other pages (5 posts)

  1. peachey777
    Member
    Posted 2 years ago #

    What I am trying to do is block external non-wordpress pages from being viewed unless the user is logged into their wordpress account. So basically if I could find some code that just checks if a wordpress user is logged in, I can do the rest. Has anyone ever done anything like this?

    Thanks!

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

  3. peachey777
    Member
    Posted 2 years ago #

    That looks like it will end up being the solution I'm looking for. Do you know what I need to include to make it work outside of wordpress? I've included the wordpress config and I don't get any errors, but the function doesn't return any value.

  4. Mark / t31os
    Moderator
    Posted 2 years ago #

    No idea, perhaps start with the file where the function is defined.
    http://codex.wordpress.org/Function_Reference/is_user_logged_in#Source_File

  5. peachey777
    Member
    Posted 2 years ago #

    I did try that one as well with no luck, but my boss wants me to go in a different direction now anyways. Thanks for the help

Topic Closed

This topic has been closed to new replies.

About this Topic