How can i add new item to wordpress sidemenu, with icon on it?. So far i have done this , but when clicked , it will redirect to another page. i dont want to redirect to new page . but i want to redirect to logout page i have searched here on stackoverflow . but no answers so far. here is what i treid, in functions.php file:
/*
* Logout
*/
add_action('admin_menu', 'logout_menu_item');
function logout_menu_item() {
add_menu_page('Logout', 'Logout', 'manage_options', 'logout', "wp_logout", 'dashicons-external', 999);
}