wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



the_post_password › WordPress Function

Od2.7.0
Przestarzałyn/a
the_post_password ( Brak parametrów )
Zdefiniowane na:
Codex:

Displays the post password.

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


Źródło

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