Changing Login Redirects

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:
  1. /** You need to put code in theme functions.php **/
  2. function redirect_to_custom_login_url()
  3. {
  4.     return get_option('siteurl').'/login/';
  5. }
  6. 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;

  1. /** You need to put code in theme functions.php **/
  2. function redirect_to_custom_login_url()
  3. {
  4.     return get_option('siteurl').'/login/';
  5. }
  6. add_filter( 'event_manager_event_dashboard_login_url', 'redirect_to_custom_login_url' );




    • Related Articles

    • Updating WP Event Manager

      Automatic Update WP Event Manager always strives to achieve perfection in every way and that is why we constantly update our plugins so that you can enjoy their innovative features. Here are the steps that you need to take to update WP Event Manager: ...
    • Installation of WP Event Manager

      Automatic Installation of FREE WP Event Manager Installing WP Event Manager is just a matter of a few clicks. You can add WP Event Manager to your website by using the dashboard offered to you at the backend of the CMS. To install the plugin ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Changing the event slug/permalink

      In this guide, we will show you how you can change or customize the event slug or permalink. It usually appears like this: http://yoursite.com/events/event-listing-title in the default settings. To customize this with WP Event Manager, you can use ...
    • Importing Event Listings With WP All Import Pro

      WP All Import Pro allows you to import posts and custom post categories (like occasional postings) with CSV and XML documents. Steps for importing from a CSV file are given below. Preparing Your CSV File Event Title. Event Description. Event ...