Created
September 10, 2019 06:24
-
-
Save iksent/153632acbf0ed772d51c049fa031a52d to your computer and use it in GitHub Desktop.
Add new fields to nav_menu_item posts in the WordPress menu editor.
I have found the right way to make it: we must use this walker to be compatible with other plugins and themes.
If someone needs to rewrite the code using this walker, just leave a comment here, I will provide a new code with the changes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For starting using it, just copy 2 files, import
AdminMenusImprover
and call anywhere in admin file:AdminMenusImprover::get_instance();
Here is the result.