Filters whether a post requires the user to supply a password.
$requiredbool
$postWP_Post
return apply_filters( 'post_password_required', $required, $post );
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_password_required