add_filter( 'register_taxonomy_args', 'change_taxonomies_slug', 10, 2 );
function change_taxonomies_slug( $args, $taxonomy ) {
if ( 'project_category' === $taxonomy ) {
$args['rewrite']['slug'] = 'stainless-steel-products';
}
return $args;
}
Related Posts:
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- Create custom permalinks to show Custom Post Type’s relationship?
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- url not using query string no longer working
- Child-Theme Category View with modified permalinks (%category% removed)
- How to edit button permalink inside function.php using a child theme?
- WordPress Rewrite Issue
- Multiple URL from Custom post name
- WordPress add parameters with friendly url structure
- Remove slug of multiple custom post types with and without hierarchical
- 200 Rewrite blog post links
- php script to change slug in post automatically
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- WordPress every page is 404 not found including admin resources
- WordPress returning 404 for multisite pages
- WordPress custom post type permalink rewrite shows page not found
- How to use $_GET function WordPress backend
- Append query string to all URL’s
- custom rewrite rule help! Custom rewrite rules not applying to custom post type
- subdirectory index.php is not working
- Use URL Rewrite as well as $_GET parameters in URL?
- How to modify URL (add GET values) after front end form submission?
- Replace part of a parent-theme customizer in the child-theme
- parts of url disappear when using # inside href=”” [closed]
- Add .htm extention to a custom taxonomy
- two columns of posts on homepage, one of them “favorites”
- Help with .htaccess and Login with Subfolders
- How to edit php files in Child Theme?
- WordPress Child Themes
- Custom Background by Page IDs
- WordPress add_rewrite_rules for custom URLs ending in .html
- Copyright info change – Corporate Plus Theme PHP [closed]
- How to get post permalink url without a href
- Started getting warning message following host’s PHP upgrade
- get_template_directory_uri() providing wrong path for img
- stripping tags from excerpt in WordPress is not working
- Change product_base programmatically
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- Why does the Woocommerce grouped template prints the unpublished products?
- How to edit HTML of my website on WordPress? [closed]
- How to specify the path for require_once in a child theme?
- Warning: printf(): Too few arguments in helpers.php file
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin
- How do I check or test a WordPress Auto Year Change Script?
- Use custom template on custom post type
- How to have different site identity logos on each page on Astra Theme [closed]
- Include style.css in the Child Theme with PHP
- Custom post type permalinks do not appear using the link functions
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- Remove slugs from custom posts type
- .html end of URl affected to SEO?
- How to add a rewrite endpoint to unattached media?
- How do i add slugs to a URL, but still redirecting to the same page
- Problems clearing cache
- Removing “Powered by” footer using child theme PHP [closed]
- Overide Variable in Child Theme
- child parent styles enqueue order
- Nginx WordPress and another Web app URL structure
- Custom post type url Rewrite (conflicting with page url)
- Creating a child theme after numerous edits to parent theme
- Search only working on front page (index) , not working on other pages
- using wp enqueue style to create a CSS file specifically for a page template
- How to style injected code in header section?
- how to edit a specific post slug using a php code?
- Where should I copy a PHP file from wp-includes to, in order to override it in my child theme?
- Creating a Category Taxonomy
- Child Theme’s Read More Text
- WordPress theme showing blank page
- Need advice on theme customizer and child themes
- Conditionally remove comments and post meta in functions.php
- WordPress Rewrite Rule
- Strip hashtag off permalink with php
- Trying to change featured image from 180×180 to full width on home page
- Insert PHP code in Text
- Why is home page content not displaying with this rewrite rule?
- Modifying WP URL handing code?
- How to deal with a GET variable of ‘name’?
- Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed
- Can not call .php files after switching to %postname%
- WordPress permalink issue
- How to edit background color of only one sidebar?
- Inline CSS header style priority function.php Child (no enqueing I think)
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- Change permalink structure specific category
- How to pass username in affiliate link in wordpress website
- understand what code is doing when prepending /blog
- Custom URL for multiple categories hierarchy
- Add any username as link prefix and show data from that specific user’s profile on wordpress pages – with no login required
- Custom taxonomy with page post type – WordPress
- Divi – add title to mobile menu button
- how to goto specific page number including title with permalink
- How to extract URLs from wordpress taxonomies
- WordPress 6.1.1 UTF8 Slug Limit Increase
- why css file not link?how to create permalink?
- How can I use AJAX in child theme template?
- How to automatically flush permalinks?
- Execute wp_after_insert_post after the permalink is customized
- WordPress CPT & Custom Taxonomy with the SAME Permalink Structure