Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created December 11, 2017 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/4c7521a7bde86f013d5f96b5f1de6adf to your computer and use it in GitHub Desktop.
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.
<?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