Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'woocommerce_register_form_end', 'custom_add_redirect_to_sing_up_page' );
- function custom_add_redirect_to_sing_up_page() {
- if ( isset( $_SERVER['HTTP_REFERER'] ) ) {
- echo '<input type="hidden" name="redirect" value="' . esc_url( $_SERVER['HTTP_REFERER'] ) . '" >';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement