Created
October 28, 2019 19:35
-
-
Save waltercruz/2a2feab61a2d9f4cc967f4956215c35b to your computer and use it in GitHub Desktop.
hmmmm, I just tested this code and still works..
Yes code works but i also got an PHP error message. But i fixed it by adding conditional if ($rule['operator'] == "==" && isset($options['nav_menu_item_depth'])) {
Sorry for bothering you and thank you for the code!
Br,
PeteP.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I copied this to my functions.php -file and this makes new location rule but when I modify the navigation i get an error message
Undefined array key "nav_menu_item_depth"
Can you help me with this?Br,
PeteP.