Created
June 1, 2021 09:13
-
-
Save Sirvijver/5efa2082566e778b2bc044990a4d4ae9 to your computer and use it in GitHub Desktop.
Not sure: use taxonomy field to transfer product_cat
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
| 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