Filter For Requiring Post Password
|Reported by:||BrandonGodwin||Owned by:|
|Component:||Posts, Post Types||Keywords:||has-patch needs-refresh|
I've had the need to conditionally disable the password on a post based on criteria that I define in a plugin. In order to do this, I added a filter in the post_password_required() function in wp-includes/post-template.php. This is helpful to allow search engines to crawl password protected pages or allow certain users to view the page without typing in the password.
It would be great if this could get included in the core.
Thanks for your time.