1/**
2 * Register a custom menu page.
3 */
4function wpdocs_register_my_custom_menu_page() {
5 add_menu_page(
6 __( 'Custom Menu Title', 'textdomain' ),
7 'custom menu',
8 'manage_options',
9 'myplugin/myplugin-admin.php',
10 '',
11 plugins_url( 'myplugin/images/icon.png' ),
12 6
13 );
14}
15add_action( 'admin_menu', 'wpdocs_register_my_custom_menu_page' );
16