post_password_required( int|WP_Post|null $post = null )

Whether post requires password and correct password has been provided.


25 related functions found for: post_password_required

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordspassword, post, post-template-php, post-typ, post-type, requir, required, wp-includes
wp-parser-packageTemplate, WordPress
wp-parser-source-filewp-includes/post-template.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • password
  • post
  • post-template-php
  • post-typ
  • post-type
  • requir
  • required
  • Template
  • wp-includes
  • wp-includes/post-template.php
  • template

Top ↑

Description Description


Top ↑

Parameters Parameters

$post

(int|WP_Post|null) (Optional) An optional post. Global $post used if not provided.

Default value: null


Top ↑

Return Return

(bool) false if a password is not required or the correct password cookie is present, true otherwise.


Top ↑

Source Source

File: wp-includes/post-template.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.