Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




the_post_password [ WordPress Function ]

the_post_password ( No parameters )
Uses:
  • attr
Defined at:



Display the post password.

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

Source


<?php
function the_post_password() {
    global 
$post;
    if ( isset( 
$post->post_password ) ) echo esc_attr$post->post_password );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics