In wordpress, i want to add one extra parameter(ABC) in lost password link with key (lost password email text).
I have added many hooks.
add_action( 'password_reset', 'password_reset_hook', 10, 2 );
this hook is not working
add_action( 'wp_loaded', array($this, 'process_user_lost_password' ), 20 );
when i call above action then lost password key gets generated and updated to database. Then again, default lost password action is getting called and also generating new key and updates to database again. So when i process with old key it shows message "invalid Key". How can i solved this issue. How can i stop default reset password mail firing programmatically. What is the hook to change lost password email text for wordpress?
add_filter( 'retrieve_password_message', 'my_retrieve_password_message', 10, 4 );
This filter is not working.
Please help me.