Created
March 9, 2018 16:46
-
-
Save woogists/37ef1b582aaf21bfc360131b8b970c05 to your computer and use it in GitHub Desktop.
[WooCommerce Brands] Change permalink slug for brand archives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function customise_product_brand_slug ( $tax ) { | |
$tax['rewrite']['slug'] = 'custom-slug'; // Replace 'custom-slug' with your desired slug. | |
return $tax; | |
} | |
add_filter( 'register_taxonomy_product_brand', 'customise_product_brand_slug' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment