Change Slug of iCal Events Feed

This topic contains 2 replies, has 2 voices, and was last updated by  Peter 5 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31949

    Hello,

    Is there a filter or template i can edit to change the iCal-Feed-Slug /feed/eo-events/ to /feed/myevents or just /events/feed?

    Thank you for your help!

    Peter
    #31957

    Hi Peter,

    You can register your own endpoint as follows:

    add_action('init', function(){
        if( eventorganiser_get_option('feed') ){
             //registers /feed/myevents
             add_feed('myevents', array('Event_Organiser_Im_Export','get_object'));
        }
    });
    
    Stephen Harris
    #32141

    Thank you Harris but this is not working. If I add the code to functions.php the slug is added but i will return a empty file.

    Peter
Viewing 3 posts - 1 through 3 (of 3 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.