Participate in our upcoming live webinar to learn how to use the Organizer App to create engaging virtual events on 30th October at 10 pm IST. Register Now!
How can we help?

Changing Login Redirects

Usually, when a user signs in during the event submission process or to perform any such activities they are usually redirected to the WordPress Login page by default. However, WP Event Manager gives its users the right to change the default page and redirect them to a custom login page like post-event, event dashboard, attendees dashboard, bookmark page, or event alert page.

In this guide, we will show how you can do that.

You can add a snippet to your theme function.php file if you want to send the user to the custom login page.

How to Change Login Redirects

To the Event Submission Form:

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


/** 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' );

Changing Login Redirects
Ashok Dudhat

Our team constantly explores ways that technology can help us reinvent industries. We want to change the world by creating great products that transform industries. We Dream It, We Make It.

Quick Links
Close
Close