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 5 years, 10 months ago by
nrsoft.