Lost Password redirect to My Account
Lost Password redirect to My Account
Lost Password redirect to My Account
I ended up making the whole WP site private except to logged in users by using a plugin (Ultimate Member). Then I created a single login which would be used from the .Net site. The way it works is: User clicks on link within .Net site to access WordPress site Server-side: performs POST to /wp-login.php … Read more
WP-CLI is unable to update password
The link of the password reset mail is set here. To adjust the link you have two possibilities. Either use the retrieve_password_message filter or use the filter from the network_site_url() function call. When using the retrieve_password_message filter you would have to probably use a regex to match for the url to add your additional parameters … Read more
The function you need is wp_set_password( $_POST[‘new_password’], $user_ID) This will update the user with new password.
Use the password_reset hook. function wpse_password_reset( $user, $new_pass ) { //* Do something useful with $new_pass } add_action( ‘password_reset’, ‘wpse_password_reset’, 10, 2 ); Edited to add after the comment: Looks like the reason I can’t use that is that the plugin uses wp_update_user to set the new password. Is there any way I can intercept … Read more
Function called by password_reset action passed only 1 argument instead of 2 in PHP 7.2.11
You can make the homepage password protected by creating a page and selecting it in the admin Settings > Reading > Homepage Displays. Then on the page settings make it password protected. Then create a template called front-page.php and use conditionals to show/hide the content. For Example… if ( ! post_password_required( $post ) ) { … Read more
Part of the problem is you’ve set the priority of your filter to “1” which means it will run first. Since authenticate is going to run on any login (wp-login.php or your front-end login page), you probably need to start with setting it to the default (10). Otherwise, it’s just going to hijack your wp-login.php. … Read more
WP users cant reset password