Check if password protected and password entered
-
Hi there, I’ve been looking into password protected posts and I have a question that doesn’t seem to be answered anyway, nor in the WordPress Core itself either.
post_password_required()
is the function for checking if a post is password protected or not. However this only returns as true if the password has not been entered. How do you check if the post is password protected and the password has been entered correctly?I’ve checked the Codex and done some searching and can’t find the answer anywhere! Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Check if password protected and password entered’ is closed to new replies.