Created
February 15, 2018 13:12
-
-
Save albionselimaj/6362572248d713b2d1f18f5c0fa2871c to your computer and use it in GitHub Desktop.
Change WooCommerce logout URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'template_redirect', function() { | |
global $wp; | |
if ( isset( $wp->query_vars['customer-logout'] ) ) { | |
wp_redirect( get_permalink( $page_id ) ); | |
exit; | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment