post_password_required() not recognizing cookie set with correct password

Using the below code: <?php if ( post_password_required() ) { ?> <form method=”post” action=”/wp-pass.php”> <p>This content is password protected. To view it please enter your password below:</p> <input type=”password” style=”margin:10px 0;” size=”20″ id=”pwbox-<?php the_ID(); ?>” name=”post_password”/></label><br/> <input type=”submit” value=”Submit” name=”Submit”/></p> </form> <?php } else { ?> // echo out all of the post content <?php … Read more

Is there a theme function for is_password_protected()?

I’m looking at the function and template references and I’m not seeing a way to test for whether a post is protected. Is there a theme function for (something like) is_password_protected()? I’m already using add_filter( ‘the_password_form’, ‘custom_password_form’ ); to override the default form that shows up, but I want to customize some other aspects of … Read more

Change Password notification text on mail

I am want to re-ride core function wp_update_user() In this function there is text This notice confirms that your password was changed on ###SITENAME###. that i want replace with some other word. I have tried to re-ride as function wp_update_user($userdata) { if ( $userdata instanceof stdClass ) { $userdata = get_object_vars( $userdata ); } elseif … Read more

How to customize reset_url or $reset_url

I’m trying to change the confirmation link with key and username sent by wordpress when a user forget his password. The link looks like: /wp-login.php?action=rp&key=VZUyDIiJxJz&login=user_name And I want to change it this way: /new-password/?action=rp&key=VZUyDIiJxJz&login=user_name But I don’t know what filter I must use to change it. Thank you in advance for your help and time. … Read more