Custom Front End Registration – How Does the Key work in the Password Set Request?
Because I couldn’t find an answer on this, I handled it myself by setting my own cookie in the function and checking that. Here is the revised function: function custom_login_init () { $action = isset($_REQUEST[‘action’]) ? $_REQUEST[‘action’] : ‘login’; if ( isset( $_POST[‘wp-submit’] ) ) { $action = ‘post-data’; } else if ( isset( $_GET[‘reauth’] … Read more