Last active
April 28, 2023 08:38
-
-
Save mattiasghodsian/a5d0a5773846f829ca0751df232eeb23 to your computer and use it in GitHub Desktop.
[YITH] Change product-brands slug name
This file contains hidden or 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
| /** | |
| * 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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!