> For the complete documentation index, see [llms.txt](https://githubichsan.gitbook.io/journal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://githubichsan.gitbook.io/journal/wordpress-development/functions/add_submenu_page.md).

# add\_submenu\_page

Add submenu into menu page based on first fourth parameter of `add_menu_page`menu's slug.

```php
function aa()
{
	add_menu_page("halo", "tes aja", "edit_users", "kolak", "asa", "", 3);
	add_submenu_page("kolak", "lahhhhh", "loh heh", "edit_users", "waaaww", "asa", 1);
}
add_action('admin_menu', 'aa');

function asa(){
	echo "Hello World";
}
```
