post_password_required


post_password_required ( $post = null )

Parameters:
  • (int|WP_Post|null) post An optional post. Global $post used if not provided.
Returns:
  • (bool) false if a password is not required or the correct password cookie is present, true otherwise.
Defined at:

Description

Determines whether the post requires password and whether a correct password has been provided.

Related Functions

wp_lostpassword_url, the_post_password, wp_set_password, get_password_reset_key, _post_format_request

Top Google Results

User discussions

wpseek mobile