wordpress

In WordPress 5.4 Update, you can natively add custom fields to menu items. such a wonderful update.Wordpress Said ” Two new actions let you add custom fields to menu items, without a plugin and without writing custom walkers. On the Menus admin screen, wp_nav_menu_item_custom_fields fires just before the move buttons of a nav menu item in the menu editor. In the Customizer, wp_nav_menu_item_custom_fields_customize_template fires at the end of the menu-items form-fields template. Check your code and see where these new actions can replace your custom code, and if you’re concerned about duplication, add a check for the WordPress version.”

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

thirteen + 14 =