Created
September 7, 2017 03:44
-
-
Save GeoffEW/0b3b28113baadc8a6fd982bb88152a23 to your computer and use it in GitHub Desktop.
The Events Calendar Community Events redirect to custom login form
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 | |
/* | |
* The Events Calendar Community Events redirect to custom login form | |
*/ | |
add_action ( 'tribe_ce_event_submission_login_form', 'tribe_ce_redirect_login' ); | |
function tribe_ce_redirect_login ( ) { | |
wp_safe_redirect( site_url('/login/') ); | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment