Created
February 10, 2016 20:57
-
-
Save elimn/4c321fa3d568446e08a1 to your computer and use it in GitHub Desktop.
MT | TEC | 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 | |
*/ | |
function tribe_ce_redirect_login () { | |
wp_safe_redirect( site_url( '/login/' ) ); | |
exit; | |
} | |
add_action ( 'tribe_ce_event_submission_login_form', 'tribe_ce_redirect_login' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment