Skip to:
Content
Pages
Categories
Search
Top
Bottom

User registration redirect

Viewing 3 replies - 1 through 3 (of 3 total)

  • xmasons
    Participant

    @xmasons

    Here’s what I have in my functions.php file to keep people who shouldn’t have access to WP admin pages.

    `
    function no_admin_access()
    {
    if ( !current_user_can( ‘publish_pages’ ) ) {
    wp_redirect( home_url() );
    die();
    }
    }
    add_action( ‘admin_init’, ‘no_admin_access’, 1 );
    `


    craftygeek
    Participant

    @craftygeek

    I’m sure that will be useful, but it doesn’t solve the problem (I just tried).

    If a user completes the registration form, they are then taken straight to wp-login.php.
    I want to prevent this & send them to a confirmation page instead.


    craftygeek
    Participant

    @craftygeek

    Ok – i’ve managed to solve it.

    I’ve installed the Quick Page/Post Redirect Plugin
    then setup a quick redirect for /wp-login.php?checkemail=registered & have set it to redirect to a confirmation page.

    Looks like it could be a very useful plugin – one to remember.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar