add submenu and page in page menu.
function my_plugin_menu() { add_posts_page( "halo", "halo", "edit_posts", "mantap", "asa", 1) ; } add_action('admin_menu', 'my_plugin_menu'); function asa() { echo 'Welcome to My Custom Dashboard!'; }
Last updated 10 months ago