Form based redirection

User Meta Pro support several types of role based redirection. You can control login, logout, registration redirection from User Meta >> Settings (Redirection Tab)

You can also set form based redirection. To set form based redirection, follow those steps:

1. Go to User Meta >> Settings (Redirection Tab) and choose “Referer” option, Save your change.
2. Go to User Meta >> Fields Editor, Create a HTML field. Enter following code(change url) into “Default Value” input field

<input type="hidden" name="redirect_to" value="http://example.com/redirected_url">

3. Go to User Meta >> Forms Editor, Drag your new html field to your form.

Add registration link after login form

To add registration link after default login form, add following codes to your functions.php (under current theme directory):

add_filter( 'user_meta_default_login_form', 'addRegistrationLink' );
function addRegistrationLink( $config ){
    $config['after_form'] = '<a href="http://example.com/registration" title="Registration">Registration</a>';
    return $config;
}

Subscribe to our newsletter