get_the_password_form
get_the_password_form ( $post = 0 )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
Returns:- (string) HTML content for password form for password protected post.
Defined at: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
Description
Retrieves protected post password form content.