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?
- Add rewrite rule to permalink structure
- Removing taxonomy base using WP rewrite
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Custom taxonomy on permalink
- How to enable hierarchical permalinks for hierarchical taxonomies
- How to check if last uri segment is a custom post type or taxonomy term?
- Change post permalink to external URL from custom field
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- Publish Post After Click On A Link
- WP get_permalink Return Wrong URL
- Why is this custom taxonomy showing in the database?
- How to add nofollow on all external links without plugin?
- Custom url structure for custom template
- How to Build a Movie Library in WordPress 3.x
- Get product attribute for Simple product in WooCommerce
- How do I get slug of all active plugins programmatically?
- Custom Permalink Tag breaks Pagination
- How to show category images (from plugin) on a regular page (page-example.php)?
- flush_rewrite_rules() not working on plugin activation
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Permalink for Taxonimie and Custom Post Type
- Social sharing post’s shortlink instead of permalink
- Mixed unrelated taxonomy in permalink
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- Permalink Structure CPT With Custom Taxonomy Fails
- How I can get custom field’s current value?
- Want wp_get_post_terms return in arbitrarily order, how to do?
- List taxonomy terms for post as checkboxes
- Outbound link autometic converted into linkdirect , and not opening
- Modifying Author Link to add Author Meta in URL
- Customize Custom Post Type URL
- Change permalinks of custom post type ‘question’ as post id or any random number once
- How do I modify taxonomy term slugs dynamically?
- WP_Terms_List_Table Quick Edit not working
- Reoccurring 404 Errors on all subpages
- Permalinks stopped working after migration with WP all-in-one migration plugin
- How to remove custom post type and add category and post name
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- How to Create a Custom Slug for Tags and Categories with a prefix or suffix?
- Template filter for custom taxonomy terms
- How to change url for taxonomy pages?
- Get plugin download URL from slug
- ‘Organize Series Plugin’ as muti author feature
- WordPress custom taxonomy not showing
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- URL rewrite with external JSON query
- WordPress custom permalink and archive link for custom post type
- WordPress rewrite rules not working
- Renaming Custom Taxonomy Values
- Installed Forca Theme, wonder how I can alter Post editing screen
- Plugin for a static piece of text on homepage
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- Need to edit author permissions | custom taxonomy
- Why the internal link get converted into a comment?
- Error in Fetching Custom Post Type parent Category URL (slug)
- Hidden permalink different from displayed permalink
- How Can I Create a Friendly Slug for a Dynamic Page?
- WordPress rewrite rule depend on meta values not ids
- Add custom WordPress admin page with pretty url via code
- How to update all in-site redirect URLs to destination URLs at once
- post id or permalink auto-incrementing number and reset everyday
- How to define the slug for my custom plugin?
- How to create meta fields with more than 1 relation?
- Custom role not listed
- Taxonomy question
- get_permalink is causing a whitescreen
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- Rogue splash page keeps popping up
- Add “selected” class to custom taxonomy dropdown search
- Is saving multiple options or saving multiple items in one option better?
- How to maintain WordPress permalink structure with custom content with URL parameters?
- How to get the parameters on page and avoid 404?
- Unwanted Links and Spam WordPress Pages and Posts
- Display Plugin information on specific url
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- WP Job Manger change jobs url (NOT slug)
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- claim a permalink and all sublinks in plugin
- Getting 400 Error in wordpress website