Sending the reset password link programatically

I have this manually created page: $user_login = sanitize_text_field( $_GET[‘user_login’] ); if ( username_exists( $user_login ) || email_exists($user_login) ) { ?> <!–Everything has been validated, proceed ….–> <!DOCTYPE HTML> <html lang=”en-US”> <head> <meta charset=”UTF-8″> <title></title> <script type=”text/javascript”> function submit() { var f = document.getElementById(‘lostpasswordform’); f.onclick = function () { }; document.lostpasswordform.submit(); } </script> </head> <body … Read more

Is it possible to get a page link from its slug?

Is it possible to get a page’s permalink from the slug alone? I’m aware that you can get the page’s permalink from the ID using get_page_link(): <a href=”https://wordpress.stackexchange.com/questions/4999/<?php echo get_page_link(40); ?>”>Map</a> I’m curious if there is any way to do the same with the slug of a page – like this: <a href=”https://wordpress.stackexchange.com/questions/4999/<?php echo get_page_link(“map’); … Read more