Create a top level menu in wordpress admin for a child theme -


i creating dedicated theme app custom settings used few times set app fresh wordpress install.

how create top level menu in wordpress admin twenty twelve child theme via functions.php , page contain settings? have first item in menu.

here's solution. put code in functions.php

<?php /******* new menu item admin *********/ add_action( 'admin_menu', 'register_my_custom_menu_page' );  function register_my_custom_menu_page(){     add_menu_page( 'custom menu title', '♥custom theme options♥', 'manage_options', 'custompage', 'my_custom_menu_page', '' /* or ... plugins_url( 'myplugin/images/icon.png' )*/, 1 );  }  function my_custom_menu_page(){ ?> hello world. simple example page.  <?php }  ?> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -