Created
February 26, 2020 02:06
-
-
Save helgatheviking/497b12b18d14db4d0d8bb917fb08a737 to your computer and use it in GitHub Desktop.
Add an example custom meta field to WordPress menu and display text on front-end (Requires WP5.4)
Again, not sure if the wp_get_nav_menu_items
in run at this point in the admin either... you'll have to test.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @helgatheviking for replying. It might, but I'm not sure. Looks like probably have to use is_admin () https://developer.wordpress.org/reference/functions/is_admin/
I think this is something close, but not sure it's exactly what I'm looking for???? https://developer.wordpress.org/reference/functions/wp_get_nav_menu_items/