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