Core Function
View Source on Trac ↗ get_the_password_form()
get_the_password_form( mixed $post = 0 ) Retrieves protected post password form content.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post. Required |
Return Value
(string)
HTML content for password form for password protected post.
Function Information
Since Version
1.0.0
Source File
wp-includes/post-template.php
Advertisement