Create a custom top-level menu page Wordpress code example
Example: Create a custom top-level menu page Wordpress
add_action( 'admin_menu', 'misha_menu_page' );
function misha_menu_page() {
add_menu_page(
'My Page Title', // page <title>Title</title>
'My Page', // menu link text
'manage_options', // capability to access the page
'misha-slug', // page URL slug
'misha_page_content', // callback function /w content
'dashicons-star-half', // menu icon
5 // priority
);
}
function misha_page_content(){
echo 'What is up?';
}