Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Remove unwanted widgets from Dashboard
- function remove_dashboard_widgets() {
- global$wp_meta_boxes;
- unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
- unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
- }
- add_action('wp_dashboard_setup', 'remove_dashboard_widgets');
- //Add a new widget to the Dashboard
- function contact_help(){
- echo 'If you have questions about working with the Roux Academy WordPress system, contact Kim Neue at kn@rouxacademy.com or 674-555-1212';
- }
- function register_widgets(){
- wp_add_dashboard_widget( 'contact_help_widget', 'Need help?', 'contact_help');
- }
- add_action('wp_dashboard_setup', 'register_widgets' );
- //Change log-in image
- function custom_login_logo() {
- echo '<style type="text/css">
- h1 a { background-image:url('.get_bloginfo('stylesheet_directory').'/_images/ralogo_admin.png) !important; }
- </style>';
- }
- add_action('login_head', 'custom_login_logo');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement