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
Post a Comment