$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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)