Created
July 19, 2019 18:02
-
-
Save taciara/70a2e28f146fb57c77a51bf1f9c77474 to your computer and use it in GitHub Desktop.
Remover categoria da URL
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
| //RETIRAR O /CATEGORY DA URL | |
| add_filter('user_trailingslashit', 'remcat_function'); | |
| function remcat_function($link) { | |
| return str_replace("/category/", "/", $link); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment