Skip to content

Instantly share code, notes, and snippets.

@mattiasghodsian
Last active April 28, 2023 08:38
Show Gist options
  • Select an option

  • Save mattiasghodsian/a5d0a5773846f829ca0751df232eeb23 to your computer and use it in GitHub Desktop.

Select an option

Save mattiasghodsian/a5d0a5773846f829ca0751df232eeb23 to your computer and use it in GitHub Desktop.
[YITH] Change product-brands slug name
/**
* Title: [YITH] Change product-brands slug name
* Author: Mattias Ghodsian
* Description: Change product-brands slug name
* Donate a cup of coffee: https://www.buymeacoffee.com/mattiasghodsian
* Donate Eth: 0xBBB96204E45D11C9799c6B12E6eE6F0d4A071Ef5
**/
function yith_brand_slug_rewrite() {
return 'varumarke';
}
add_action( 'yith_wcbr_taxonomy_rewrite' , 'yith_brand_slug_rewrite', 10 , 2 );
@ydarwin
Copy link

ydarwin commented Jan 12, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment