The pre insert venue filter doesn't work

WordPress Event Management, Calendars & Registration Forums iCal Extension The pre insert venue filter doesn't work

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 6 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36125

    This filter mentioned in one of the other questions doesn’t seem to work: eventorganiser_pre_insert_venue.

    Added it to functions.php like this:

    function mi_eventorganiser_pre_insert_venue($args){
        $args['slug'] = sanitize_title($args['name'] . ' ' . $args['city']);
        return $args;
    }
    add_filter('eventorganiser_pre_insert_venue', 'mi_eventorganiser_pre_insert_venue');
    

    The slugs are still the same and not changed in any way.

    Philip Peters
    #36126

    Hi Philip,

    This code works, I’ve tested manually and its also part of the automated test suite.

    It changes the slug for new venues only.

    Are you sure that the code is executing?

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 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.