Change lost password url to a mailto URL in WordPress

Question

can you help me, how can I change the lost password link to an email action with specified subject?
I found that in the functions.php I can add a new filter like this:

add_filter( 'lostpassword_url',  'my_lostpassword_url', 10, 0 );
function my_lostpassword_url() {
    return site_url('/password-reset/');
}

But I dont know how can I implement the mailto action instead of the new url. Can you help me?

0
Blackdog 4 months 0 Answers 13 views 0

Leave an answer