URL: <%= config[:author_uri] %> Special Thanks for code & inspiration to: @jackmcconnell - http://www.voltronik.co.uk/ Digging into WP - http://digwp.com/2010/10/customize-wordpress-dashboard/ */ /************* DASHBOARD WIDGETS *****************/ // disable default dashboard widgets function disable_default_dashboard_widgets() { // remove_meta_box('dashboard_right_now', 'dashboard', 'core'); // Right Now Widget remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget remove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Incoming Links Widget remove_meta_box('dashboard_plugins', 'dashboard', 'core'); // Plugins Widget // remove_meta_box('dashboard_quick_press', 'dashboard', 'core'); // Quick Press Widget remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); // Recent Drafts Widget remove_meta_box('dashboard_primary', 'dashboard', 'core'); // remove_meta_box('dashboard_secondary', 'dashboard', 'core'); // // removing plugin dashboard boxes remove_meta_box('yoast_db_widget', 'dashboard', 'normal'); // Yoast's SEO Plugin Widget } /* Now let's talk about adding your own custom Dashboard widget. Sometimes you want to show clients feeds relative to their site's content. For example, the NBA.com feed for a sports site. Here is an example Dashboard Widget that displays recent entries from an RSS Feed. For more information on creating Dashboard Widgets, view: http://digwp.com/2010/10/customize-wordpress-dashboard/ */ // RSS Dashboard Widget function <%= theme_id %>_rss_dashboard_widget() { if(function_exists('fetch_feed')) { include_once(ABSPATH . WPINC . '/feed.php'); // include the required file $feed = fetch_feed('http://themble.com/feed/rss/'); // specify the source feed $limit = $feed->get_item_quantity(7); // specify number of items $items = $feed->get_items(0, $limit); // create an array of items } if ($limit == 0) echo '
The RSS Feed is either empty or unavailable.
'; // fallback message else foreach ($items as $item) { ?>

get_title(); ?>

get_description(), 0, 200); ?>

_custom_dashboard_widgets() { wp_add_dashboard_widget('<%= theme_id %>_rss_dashboard_widget', __('Recently on Themble (Customize on admin.php)', '<%= theme_id %>theme'), '<%= theme_id %>_rss_dashboard_widget'); /* Be sure to drop any other created Dashboard Widgets in this function and they will all load. */ } // removing the dashboard widgets add_action('admin_menu', 'disable_default_dashboard_widgets'); // adding any custom widgets add_action('wp_dashboard_setup', '<%= theme_id %>_custom_dashboard_widgets'); /************* CUSTOM LOGIN PAGE *****************/ // calling your own login css so you can style it //Updated to proper 'enqueue' method //http://codex.wordpress.org/Plugin_API/Action_Reference/login_enqueue_scripts function <%= theme_id %>_login_css() { wp_enqueue_style( '<%= theme_id %>_login_css', get_template_directory_uri() . '/library/css/login.css', false ); } // changing the logo link from wordpress.org to your site function <%= theme_id %>_login_url() { return home_url(); } // changing the alt text on the logo to show your site name function <%= theme_id %>_login_title() { return get_option('blogname'); } // calling it only on the login page add_action( 'login_enqueue_scripts', '<%= theme_id %>_login_css', 10 ); add_filter('login_headerurl', '<%= theme_id %>_login_url'); add_filter('login_headertitle', '<%= theme_id %>_login_title'); /************* CUSTOMIZE ADMIN *******************/ /* I don't really recommend editing the admin too much as things may get funky if WordPress updates. Here are a few funtions which you can choose to use if you like. */ // Custom Backend Footer function <%= theme_id %>_custom_admin_footer() { _e('Developed by <%= config[:author] %>.', '<%= theme_id %>theme'); } // adding it to the admin area add_filter('admin_footer_text', '<%= theme_id %>_custom_admin_footer'); ?>