(Add your language)
Whether post requires password and correct password has been provided.
<?php post_password_required( $post ); ?>
- (mixed) (Global $post variable) Either the post ID (integer) or the post object.
- Default: None
- False if a password is not required or the correct password cookie is present, true otherwise.
post_password_required() is located in