Sometimes you’d like to add things to your menu that you usually cannot find in the menus page. Something more than just links, or you’d like to have customized menu item that behaves differently when you’re logged in or not. I’m going to show you two examples of using the ‘wp_nav_menu_items’ filter: one is adding custom My Account menu item for WooCommerce, and the other example will show you how to add a dropdown widget to your menu.
We continue our journey of understanding what OOP is, and how to utilize it in WordPress. We’ll create a class, and through it we’ll create our sub menu pages.
I’ve always wondered what is the benefit of the object oriented programming (oop), and never really grasped it, until I actually started writing code in that way. And now I’m hooked. I’ll try to explain how you can code in OOP style, by explaining to you how to create Theme Options in Wordpress.
I am going to explain to you how to migrate the entire WordPress installation to live server manually