#welcome-panel { display: none!important; } "; } add_action('admin_head', 'hide_welcome'); function hide_profile() { echo ""; } add_action('admin_head', 'hide_profile'); function aquila_admin_css() { echo " "; } add_action('admin_head', 'aquila_admin_css'); add_action('wp_head', 'aquila_admin_css'); // End remove widgets // /** * Add a widget to the dashboard. * * This function is hooked into the 'wp_dashboard_setup' action below. */ function add_welcome_widget() { wp_add_dashboard_widget( 'welcome-to-aquila', // Widget slug. 'Welcome to Aquila', // Title. 'add_welcome_widget_function' // Display function. ); } add_action( 'wp_dashboard_setup', 'add_welcome_widget' ); /** * Create the function to output the contents of our Dashboard Widget. */ function add_welcome_widget_function() { // Display whatever it is you want to show. echo "
Welcome to Aquila from design by Mito.
"; } function add_role_to_body($classes) { global $current_user; $user_role = array_shift($current_user->roles); $classes .= 'role-'. $user_role; return $classes; } //add_filter('body_class','add_role_to_body'); add_filter('admin_body_class', 'add_role_to_body'); // Credit // function credit_mito() { echo ""; } add_action('admin_head', 'credit_mito'); // End Credit // // Remove "How are you" // function aquila_adminbar_appearance() { global $wp_admin_bar; $user_id = get_current_user_id(); $avatar = get_avatar( $user_id, 16 ); $wp_admin_bar->add_menu( array( 'id' => 'my-account', 'title' => ' ' . $avatar ) ); } add_action( 'wp_before_admin_bar_render', 'aquila_adminbar_appearance' ); // End Remove "How are you" // ?>