Forked from greathmaster/pmpro-logout-and-redirect-after-checkout.php
Created
March 26, 2021 16:19
-
-
Save femiyb/85e6044bdb3dfc501188e750cf72566a to your computer and use it in GitHub Desktop.
Log out the user after checkout and redirect them to a custom 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 | |
| // Log user out after check out | |
| function my_pmpro_after_checkout($user_id) | |
| { | |
| wp_logout(); | |
| } | |
| add_action('pmpro_after_checkout', 'my_pmpro_after_checkout'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment