How to redirect action=register link on the lostpassword page to a different link?

Hook into login_form_register and throw people to your registration page with wp_redirect. <?php add_action( ‘login_form_register’, ‘wpse45134_catch_register’ ); /** * Redirects visitors to `wp-login.php?action=register` to * `site.com/register` */ function wpse45134_catch_register() { wp_redirect( home_url( ‘/register’ ) ); exit(); // always call `exit()` after `wp_redirect` } You can also hide the “register” link on that page by hijacking … Read more

Problem with email_exists in shortcode

This is a basic version of your code above which seperates the registration logic (handled on init) from the form output done by the shortcode. It will basically work, but is missing any validation so just to show the concept. $wpse_email_exists = null; function registration_form_shortcode() { global $wpse_email_exists; $output=”<form name=”registration” action=”” . esc_url($_SERVER[‘REQUEST_URI’]) . ‘” … Read more

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