wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



the_post_password › WordPress Function

Da2.7.0
Deprecaton/a
› the_post_password ( Nessun parametro )
Definito a:
Codex:

Displays the post password.

The password is passed through esc_attr() to ensure that it is safe for placing in an HTML attribute.


Sorgenti

function the_post_password() {
	$post = get_post();
	if ( isset( $post->post_password ) ) {
		echo esc_attr( $post->post_password );
	}
}