Advertisements

the_post_password

Definition:
function the_post_password() {}

Display the post password.
The password is passed through esc_attr() to ensure that it is safe for placing in an html attribute.

Source code

function the_post_password() {

	global $post;

	if ( isset( $post->post_password ) ) echo esc_attr( $post->post_password );

}

3035

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: