wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



the_post_password › WordPress Function

Depuis2.7.0
Dépréciéen/a
the_post_password ( Pas de paramètres )
Défini(e) dans:
Codex:

Displays the post password.

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


Source

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