fbpx

How can we help?

Changing Login Redirects

Whenever a user clicks on “Sign In” during the event submission process or while performing any of the activities, like post-event, event dashboard, attendees dashboard, bookmark page, or event alert page, they will be redirected 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 the custom login page.

At Submission Form

  • User login redirected URL needs to be defined in Event Manager>> Settings >> Page.
  • Use the hook:
<?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' );
?>

At Event Dashboard

The same login URL will be used from the settings or you can define custom using below code;

<?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' );
?>
Was this article helpful?
How can we improve this article?