Uma área de pesquisa sobre o WordPress para devs e autores do tema



the_post_password ›

Desde2.7.0
Obsoleton/a
the_post_password ( Sem parâmetros )
Definido em:
Codex:

Displays the post password.

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



Fonte

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