PHP difference between home_url() vs get_option(‘home’)
home_url() is faster and secure than get_option(‘home’) – Source Example using “/” (source): Output (echo): http://www.example.com/
home_url() is faster and secure than get_option(‘home’) – Source Example using “/” (source): Output (echo): http://www.example.com/
1. Register a new menu in WordPress admin Use WordPress’s register_nav_menus to register the menu so it appears in Appearance > Menus > Menu Locations. Place the below PHP code in Code Snippets plugin: Important: In the Code Snippet plugin, right below the PHP code, make sure and choose Run snippet everywhere. Otherwise the newly-registered…