Disable WordPress Admin Bar
Sometimes we need to remove the admin bar from the top from front end users when creating a membership website using wordpress.So here we are discussing about how we can disable wordpress admin bar or Hide WordPress admin bar So copy …
Get list of all WordPress menus
If we need to get list of all wordpress menus we have to use the get terms, The code to fetch all the WordPress menus os shown below
Get number of post from wordpress query
If we need to show the number of posts returned from query First we need to initialize the global variable global $wp_query And the entire code will be
How to remove the submenu with the same name as mainmenu in wordpress plugin
During wordpress plugin development, Sometimes we need to remove the submenu with the same name as the mainmenu from sidebar for example see the image And in-order to remove the menu which repeats and to look like this we need …