Last active
June 29, 2021 11:32
-
-
Save InpsydeNiklas/fd007cdda4176d4bb2904a333e26d68e to your computer and use it in GitHub Desktop.
this does something with MLP but I forgot
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
add_filter('multilingualpress.taxonomies_and_terms_of', function($taxonomies,$post){ | |
foreach ($taxonomies as $key => $taxonomy) { | |
if ($taxonomy === 'product_cat') { | |
unset($taxonomies[$key]); | |
} | |
} | |
return $taxonomies; | |
},10,3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment