I'm trying to do one custom menu at my wordpress admin panel.
My plans are: make and menu, to add some contents at a custom page, like "people" and their names, etc...
I wanna make it with php.
I used this only to view whats happen:
add_action('admin_menu', 'register_my_custom_submenu_page');
function register_my_custom_submenu_page() {
add_submenu_page( 'tools.php', 'My Custom Submenu Page', 'My Custom Submenu Page', 'manage_options', 'my-custom-submenu-page', 'my_custom_submenu_page_callback' );
}
function my_custom_submenu_page_callback() {
echo '<h3>My Custom Submenu Page</h3>';
}
It added an page, inside tools menu, what can I do to create on an exclusive menu??
On my_custom_submenu_page_callback
, what can I do to work with embedded PHP code? like mysql_query
and stuff?