Custom redirect After Registering
-
add_action( 'register_form', 'hiddern_redirect_url' ); function hiddern_redirect_url() { ?> <input type="hidden" name="redir_post_register" value="<?php echo get_site_url(); ?>/welcome" /> <?php } add_filter ( 'woocommerce_registration_redirect', 'redirect_post_registration'); function redirect_post_registration( $redirect ) { if ( $_POST['redir_post_register'] ) { $redirect = $_POST['redir_post_register']; }
Add the above code to functions.php and create a page welcome for redirected page
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom redirect After Registering’ is closed to new replies.