Password Protect content() on homepage

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

Frontend custom forgot password page

Seems Frontend Reset Password does what you want. Among other features it also provides you a shortcode to be placed anywhere you want. Styling then is up to you and should be done from your custom (child) theme. From Reviews: If you are just looking for simlple forget password plugin without other fancy code, this … Read more

$expiration_duration = apply_filters( ‘password_reset_expiration’, DAY_IN_SECONDS );

in general we use WordPress filters to make changes for data. so in this code the filter password_reset_expiration allows us to make changes in it’s parameter DAY_IN_SECONDS which equals 86400 seconds. so we can change this value by adding a function that returns a new value to this filter: add_filter( ‘password_reset_expiration’, function( $expiration ) { … Read more

Sending Reset Password email via Web API

You can hook retrieve_password_message (code): /** * Filters the message body of the password reset mail. * * If the filtered message is empty, the password reset email will not be sent. * * @param string $message Default mail message. * @param string $key The activation key. * @param string $user_login The username for the … Read more