Add Filter to iCal $venue

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 5 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34627

    Could you add a filter to the iCal venue / LOCATION field? Something like this in ical.php (line 150) would be great:

    $venue = apply_filters( 'eventorganiser_ical_location', $venue );

    I don’t need it for my current project, but maybe consider adding a filter on the event title / SUMMARY iCal field as well.

    Thank you for the great plugin and awesome support!

    Dan Brubaker
    #34819

    Hi Dan,

    Apologies for the delay in replying to this. The ical.php file is a template, which means you can copy into your theme and it will over-ride the plug-in one. This allows you to make any changes you require to the feed template without using filters (or losing our changes when you update the plugin).

    Stephen Harris
    #34853

    I understand all that, but it would still be nice if you could add the $venue = apply_filters( 'eventorganiser_ical_location', $venue ); line into ical.php anyway. I would prefer NOT to have to copy a template file and clutter my child theme with it when it would only take 5 lines of code with the filter to accomplish what I want.

    The event’s description already has a filter. It makes sense to me to go farther and add some more in – at least one for the venue.

    Maybe there’s something I’m overlooking… Thank you for considering this!

    Dan Brubaker
    #34979

    Sure, I’ll include this in the next release; just wanted to make you aware that you could modify the template too.

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.