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

Whether post requires password and correct password has been provided.

Related Functions

wp_lostpassword_url, the_post_password, wp_set_password, get_password_reset_key, wp_get_password_hint

Top Google Results

User discussions

wpseek mobile