function my_password_form()
-
I’m sorry but i don’t have answer !
I really need your helpI have a problem whith this fonction in version 3.5.1
—————————
<?php
function my_password_form() {
global $post;
$label = ‘pwbox-‘.( empty( $post->ID ) ? rand() : $post->ID );
$o = ‘<form class=”protected-post-form” action=”‘ . get_option( ‘siteurl’ ) . ‘/wp-pass.php” method=”post”>
‘ . __( “To view this protected post, enter the password below:” ) . ‘
<label for=”‘ . $label . ‘”>’ . __( “Password:” ) . ‘ </label><input name=”post_password” id=”‘ . $label . ‘” type=”password” size=”20″ /><input type=”submit” name=”Submit” value=”‘ . esc_attr__( “Submit” ) . ‘” />
</form>
‘;
return $o;
}
add_filter( ‘the_password_form’, ‘my_password_form’ );
?>
—————————
The text is changed, but when you enter the password and nothing !
You have an idea ?
thanks for your help !
- The topic ‘function my_password_form()’ is closed to new replies.