Quantcast
Channel: Wordpress API - Developer Code Book » wp tutorials
Viewing all articles
Browse latest Browse all 10

After WP registration send user to specific page

$
0
0

Many wordpress website users allow user to register on there site. After new user registration if we want to show them specific instructions or registration success page then you can use the following code. Put following code into functions.php file.

Before adding the following code create your “registration-done” page.

function wpapi_registration_redirect(){
    return home_url( '/registration-done/' );
}
add_filter( 'registration_redirect', 'wpapi_registration_redirect' );


Viewing all articles
Browse latest Browse all 10

Trending Articles