Filter not being used on admin colum

Home Forums Calendar Products Events Calendar PRO Filter not being used on admin colum

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1318590
    dschwinler
    Participant

    I’ve added a new taxonomy called “Event Categories”, and it was confusing to have two taxonomies with the same name so I changed the labels for the old taxonomy to “Courses” – to better reflect the actual data stored in there. Here’s the code:


    /**
    * Labels for tribe_events_cat taxonomy
    *
    */
    function tax_labels( $labels ) {
    foreach( $labels as $i => $label ) {
    $labels[$i] = str_replace( array( 'Event Category', 'Event Categories' ), array( 'Course', 'Courses' ), $label );
    }
    return $labels;
    }

    Unfortunately the events calendar plugin is not using this filter on the admin column so it shows the incorrect title. On the image below ‘Event Categories’ should read ‘Courses.’

    I thought this might be something you could patch on your next release.

    #1319802
    Cliff
    Member

    Thanks for your detailed question.

    Please instead use theĀ tribe_events_register_category_taxonomy_labels and/or tribe_events_register_event_cat_type_args filters.

    Please let me know how this goes for you.

    #1329555
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Filter not being used on admin colum’ is closed to new replies.