Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    post_password_required() will return true if the post requires a password *and* the user has not given the correct password already. False otherwise.

    Thread Starter asdfasdf_offline

    (@gangxtaboii)

    thx a lot ??

    and this also works for private pages/posts? or only for password-protected?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Only for password protected. If you want to check for private posts, look at the $post->post_status and see if it’s set to “private”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘is_private() exists?’ is closed to new replies.