-
-
Save Pebblo/4c7521a7bde86f013d5f96b5f1de6adf to your computer and use it in GitHub Desktop.
Example of how to redirect the user away from the standard EE login form when the wpuser_login step has been initialized.
This file contains 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 //Please do not include the opening PHP tag if you already have one | |
function tw_redirect_login( EE_SPCO_Reg_Step_WP_User_Login $spco_step ) { | |
wp_safe_redirect( home_url() ); | |
} | |
add_action('AHEE__Single_Page_Checkout___initialize_reg_step__wpuser_login', 'tw_redirect_login'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment