Definition:
function get_the_password_form() {}
Retrieve protected post password form content.
Return values
returns:HTML content for password form for password protected post.
Defined filters
- the_password_form
apply_filters('the_password_form', $output)
Source code
function get_the_password_form() {
global $post;
$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
$output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">
<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
<p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p>
</form>
';
return apply_filters('the_password_form', $output);
}
1843

February 12, 2011 


No comments yet... Be the first to leave a reply!