Title: Forgot password functionality in shortcode
Last modified: August 30, 2016

---

# Forgot password functionality in shortcode

 *  [Andy](https://wordpress.org/support/users/andys2p/)
 * (@andys2p)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/forgot-password-functionality-in-shortcode/)
 * Hello,
 * I installed WP 4.3 and developed some shortcodes which take over login, register,
   edit profile, logout and forgot password functionalities.
 * My question: Shouldn’t retrieve_password() from wp-login.php function be defined
   in let’s say wp-includes/user.php so when I implement forgot password functionality
   I don’t have to copy&paste code from wp-login.php to my shortcode code?
 * If I do copy&paste would mean I “hardcode” forgot password functionality and 
   I want to follow WP functionalities as much as possible.
 * Thanks,
    Andy

The topic ‘Forgot password functionality in shortcode’ is closed to new replies.

## Tags

 * [forgot password](https://wordpress.org/support/topic-tag/forgot-password/)
 * [lost+password](https://wordpress.org/support/topic-tag/lostpassword/)
 * [wp-login.php](https://wordpress.org/support/topic-tag/wp-login-php/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [Andy](https://wordpress.org/support/users/andys2p/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/forgot-password-functionality-in-shortcode/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
