Came here looking for the reason why our Register Plus Redux does not seem to save the users’ first name and last name anywhere. Tried to modify the plugin to resolve the problem with direct wp-login.php references. Code below.
In register-plus-redux.php, insert for example on line 228:
// Check whether current page is the login page
public static /*.boolean.*/ function on_login_page() {
$login_page = preg_replace( '_[^:]+://[^/]+_', '', wp_login_url() );
if ( 'wp-login.php' === $pagenow || 0 === strpos( $_SERVER['REQUEST_URI'], $login_page ) ) {
return TRUE;
} else {
return FALSE;
}
}
In rpr-login.php and rpr-new-user-notification.php replace all instances of:
'wp-login.php' === $pagenow
with
Register_Plus_Redux::on_login_page() === TRUE
and
'wp-login.php' !== $pagenow
with
Register_Plus_Redux::on_login_page() === FALSE
This may resolve some problems, but unfortunately the first and last names are still not saved on our site upon registration. I’m thinking it has to do with references the following kinds of code in rpr-login.php and other files:
$redux_usermeta = get_option( 'register_plus_redux_usermeta-rv2' );
The database table options
, the one get_option() gets its return values from, does not contain anything with this name. Neither does the usermeta
table.
My guess: The code to create this field for new installs was forgotten from the latest version.