Support

Home Forums Event Espresso Premium Automatically Redirect Links to Expired Event

Automatically Redirect Links to Expired Event

Posted: April 28, 2018 at 7:23 am


smallfryart

April 28, 2018 at 7:23 am

It seems like my customers are either saving links directly to events or clicking on old links that we have posted on facebook. Is there any way to have event espresso automatically redirect requests for expired events to another page?


Josh

  • Support Staff

April 30, 2018 at 11:02 am

Hi smallfryart,

You can add a custom script that will do that. Here’s a gist that shows one way how:

https://gist.github.com/joshfeck/02b6d1156f83ac27b7f489edf4580125

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


smallfryart

April 30, 2018 at 3:16 pm

You rock… that worked perfectly! And now i know how to do a site specific plugin! Woo hoo!

The support post ‘Automatically Redirect Links to Expired Event’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso