Try using the below code to overwrite arguments of already registered taxonomies.
function wp_modify_taxonomy() {
// get the arguments of the already-registered taxonomy
$custom_category_args = get_taxonomy( 'genre' );
// make changes to the args
$custom_category_args->rewrite['slug'] = 'chambers';
$custom_category_args->rewrite['with_front'] = false;
// re-register the taxonomy
register_taxonomy( 'genre', 'chambers', (array) $custom_category_args );
}
add_action( 'init', 'wp_modify_taxonomy', 11 );
Related Posts:
- Prevent page slug from interfering with custom post type archive permalink?
- How to prefix `attachment` permalinks with `attachment`?
- Alter post slug by a filter that is fired just after a post is created
- How to add rewrite rules and pagination to retrieve attachments files?
- Change settings of get_post_type_object
- Custom page slug without creating a WP page
- ‘No Results Found’ on single post for custom post type
- Is it possible to use multiple post_name, post_title and post_content?
- Remove /product/ from url. I want only category name then product name
- Permalink help with default Posts and custom Taxonomy
- “Custom Post Type Permalinks” plugin URL strcuture
- Plugin generated taxonomies’ permalinks with custom placeholders
- Redirect to another page using contact form 7? [closed]
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- add_external_rule – rules deleted when visiting permalinks page
- How to disable wordpress page rewrite rule?
- How to programatically create a simple HTML page using the permalink of a WordPress post?
- Load custom PHP on a custom URL via a plugin
- How to change custom post type pemalink Hierarcy
- Want wp_get_post_terms return in arbitrarily order, how to do?
- resetting permalinks after changing page names
- List taxonomy terms for post as checkboxes
- Plugin appends ugly URL string to index
- How to make a proper custom post type link
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Pagination Broken on Static Pages but Works on Blog Articles
- AddToAny shortcode in the loop
- Outbound link autometic converted into linkdirect , and not opening
- Custom rewrite rules not working with WPML
- auto populate list of questions if user select a category xyz
- Modifying Author Link to add Author Meta in URL
- SEO Friendly URL on dynamic product page produced via shortcode
- Customize Custom Post Type URL
- Change permalinks of custom post type ‘question’ as post id or any random number once
- Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category
- Custom Permalinks with CPT and Hierarchical Taxonomies
- register_taxonomy and variable rewrite slug
- Customize permalink wordpress category id
- How do I modify taxonomy term slugs dynamically?
- How to set taxonomy in custom plugin?
- WP_Terms_List_Table Quick Edit not working
- Changing page URL and connect newsletter to MailChip
- Reoccurring 404 Errors on all subpages
- Problem with Author page redirect
- how to change permalinks format for pagination?
- Replace taxonomy permalinks
- Permalinks stopped working after migration with WP all-in-one migration plugin
- How to change permalink to include custom post type
- How to remove custom post type and add category and post name
- Perform internal redirect in WordPress?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Rewrite Rules returning wrong data
- Using arbitrary paths in page urls
- Ordering taxonomies by rank
- Filtering get_permalink in Jetpack / ShareDaddy
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- How to Create a Custom Slug for Tags and Categories with a prefix or suffix?
- plugin links not working [closed]
- Template filter for custom taxonomy terms
- Remove .htaccess portion upon plugin deactivation?
- How to get the permanent link in a plugin?
- How to change url for taxonomy pages?
- Get plugin download URL from slug
- ‘Organize Series Plugin’ as muti author feature
- Removing Automatic Redirects Without Plugin
- WordPress custom taxonomy not showing
- wordpress how to replace url /bar with foo/bar for custom post type
- Getting taxonomy images to display on single-post with their terms
- Where to populate custom terms in custom taxonomy in plugin?
- Custom url rewriting
- This WordPress plugin isn’t creating links correctly
- Default taxonomy template in plugin, override in theme
- flush_rewrite_rules() not working with update_option_{$option}
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Disable plugin If slug contains specific word
- Custom Post Type Advanced Slug
- Duplicate slug/permalink issue
- URL rewrite with external JSON query
- How do I create a custom permalink structure for a page template
- wp_insert_term() doesnt insert a term
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- WordPress custom permalink and archive link for custom post type
- How to get CPT category checkbox list and show post of selected(multiply) checkboxes via ajax?
- WordPress rewrite rules not working
- I want to filter my products with attributes [closed]
- Renaming Custom Taxonomy Values
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- Smarter navigation plugin and custom taxonomies
- Installed Forca Theme, wonder how I can alter Post editing screen
- Passing value as hidden parameter to next page
- How to embed a new string in url?
- Make get_permalink() work outside the Loop using filters
- i want to rewrite my custom plugin url
- Need equivalent of single_term_slug
- Plugin for a static piece of text on homepage
- Plugin for TinyMCE to create reference to other posts
- Permalinks and pagination are not working in WordPress with WP e-Commerce plugin
- help intercepting save_post through plugin