Support

Home Forums Event Espresso Premium Change Event List URL in all locations

Change Event List URL in all locations

Posted: October 23, 2018 at 4:59 pm


Praxis

October 23, 2018 at 4:59 pm

Hi there,
I’ve used the function described here to change the “Event List” URL as it applies to the MER plugin, and it works! But I have come across a couple other locations where it has not applied, and the default url still appears:
1. The “We’re Sorry, but your Registration Time Has Expired” modal window
2. The “Nothing In your Event Queue” screen

Can you tell me how to change the default “Return to Events list” url for these occurrences?


Praxis

October 23, 2018 at 4:59 pm

by “here” i meant, https://eventespresso.com/wiki/ee4-multiple-event-registration-add-on/#customizations


Tony

  • Support Staff

October 24, 2018 at 4:10 am

Hi there,

Assuming you want to continue with EE using the ‘events’ slug you can change the URL across all of EE using this function:

https://gist.github.com/Pebblo/16bf7bc52af949fd60e0ee1e6db801a9

Change line 7 to return whatever URL you want to use for EE events.

Anywhere that then pulls in the event list using get_post_type_archive_link('espresso_events') (which is how EE does it) will use the URL you set.

The support post ‘Change Event List URL in all locations’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 8 months, 4 weeks ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!