Changing Login Redirect Url

Changing Login Redirects

Whenever user click on “Sign In” link at post event, event dashboard, attendees dashboard, bookmark page or event alert page, they will redirect to the default WordPress login page. You can add a snippet in your theme function.php file if you want to send the user to custom login page.

 

Event Manager

Submit Event Page

<?php
/** You need to put code in theme functions.php **/
function redirect_to_custom_login_url() 
{
    return get_option('siteurl').'/login/';
}
add_filter( 'submit_event_form_login_url', 'redirect_to_custom_login_url' );
?>

Event Dashboard

<?php
/** You need to put code in theme functions.php **/
function redirect_to_custom_login_url() 
{
    return get_option('siteurl').'/login/';
}
add_filter( 'event_manager_event_dashboard_login_url', 'redirect_to_custom_login_url' );
?>

 

Event Manager Alerts
<?php
/** You need to put code in theme functions.php **/
function redirect_to_custom_login_url() 
{
    return get_option('siteurl').'/login/';
}
add_filter( 'event_manager_alerts_login_url', 'redirect_to_custom_login_url' );
?>

Event Manager Bookmarks

<?php
/** You need to put code in theme functions.php **/
function redirect_to_custom_login_url() 
{
    return get_option('siteurl').'/login/';
}
add_filter( 'event_manager_bookmark_form_login_url', 'redirect_to_custom_login_url' );
?>