How to customize WordPress Admin panel
<?php
//Add a Custom Dashboard Logo
//hook the administrative header output
add_action('admin_head', 'my_custom_logo');
function my_custom_logo() {
echo '
<style type="text/css">
#header-logo { background-image: url('.get_bloginfo
('template_directory').'/images/custom-logo.gif) !important; }
</style>
';
}
//Change the Footer in WordPress Admin Panel
function remove_footer_admin () {
echo 'Fueled by <a href="http://www.wordpress.org" target="_blank">WordPress</a> |
Designed by <a href="abc.com" target="_blank">ABC</a> | WordPress
Tutorials: <a href="xyz.com" target="_blank">XYZ</a></p>';
}
add_filter('admin_footer_text', 'remove_footer_admin');
//Displaying a Different Favicon in the Back End
add_action( 'admin_head', 'admin_head_example' );
function admin_head_example() {
echo '<link rel="shortcut icon" type="image/x-icon" href="' . get_bloginfo
('template_directory') . '/images/admin-favicon.ico" />';
}
//Removing Menu Items That Shouldn't Be Seen by Clients
if ( ! current_user_can( 'manage_options' ) ) {
add_action( 'admin_menu', 'admin_menu_example' );
}
function admin_menu_example() {
remove_menu_page( 'index.php' ); //Dashboard
remove_menu_page( 'edit.php' ); //Posts
remove_menu_page( 'upload.php' ); //Media
remove_menu_page( 'edit.php?post_type=page' ); //Pages
remove_menu_page( 'edit-comments.php' ); //Comments
remove_menu_page( 'themes.php' ); //Appearance
remove_menu_page( 'plugins.php' ); //Plugins
remove_menu_page( 'users.php' ); //Users
remove_menu_page( 'tools.php' ); //Tools
remove_menu_page( 'options-general.php' ); //Settings
}