• Resolved nrsoft

    (@nrsoft)


    Hi there,

    It would be nice if you could make the event-category slug customizable as you did for the mep_events custom post type.

    Do you think it could be integrated in a future release?

    Thanks
    Nicolas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Md. Abdullah Al Mahim

    (@aamahin)

    Hello @nrsoft

    Thanks for your nice suggestion, Yes we will definitely add this in our future release.

    Thanks Again.

    Regards.

    Thread Starter nrsoft

    (@nrsoft)

    Hello @aamahin

    No problem for the suggestion.

    In case anyone faces the same issue in the meantime I have solved the override this way in my child theme functions.php

    
    function mep_cat_modify_taxonomy()
    {
        // get the arguments of the already-registered taxonomy
        $mep_cat_category_args = get_taxonomy('mep_cat');
    
        // update slug
        $mep_cat_category_args->rewrite['slug'] = _x( 'your-new-slug', 'slug', 'your-domain' );
    
        // re-register the taxonomy
        register_taxonomy('mep_cat', 'mep_events', (array)$mep_cat_category_args);
    }
    
    // hook it up to 11 so that it overrides the original register_taxonomy function
    add_action('init', 'mep_cat_modify_taxonomy', 11);
    

    Thanks
    Nicolas

    • This reply was modified 4 years, 7 months ago by nrsoft.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update event-category taxonomy slug’ is closed to new replies.