'
  • ', 'after_widget' => '
  • ', 'before_title' => '', 'after_title' => '', )); // Widget Area for a blank widget register_sidebar(array( 'name' => __( 'Custom Widget' ), 'id' => 'custom-widget', 'description' => __( 'This is for a custom area' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '' )); // Generate custom post type // http://www.weareo3.com/wordpress-custom-post-type-generator/ // Change Excerpt function new_excerpt_more($excerpt) { return str_replace('[...]', '...', $excerpt); } add_filter('wp_trim_excerpt', 'new_excerpt_more'); // Add RSS add_theme_support( 'automatic-feed-links' ); // Modify Dashboard add_action( 'load-index.php', 'hide_welcome_panel' ); function hide_welcome_panel() { $user_id = get_current_user_id(); if ( 1 == get_user_meta( $user_id, 'show_welcome_panel', true ) ) update_user_meta( $user_id, 'show_welcome_panel', 0 ); } function remove_widgets(){ // Remove dashboard widgets remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'side' ); remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' ); remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' ); remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); } // Hook into the dashboard action add_action('wp_dashboard_setup', 'remove_widgets' ); // Add custom widget to dashboard function bywill_dashboard(){ echo 'Welcome to bywill framework we recomend the following:-

    Plugins

    Wordpress Features

    '; echo '

    Contact

    '; echo ''; } function register_widgets(){ wp_add_dashboard_widget( 'bywill-dashboard', 'bywill Recomendations', 'bywill_dashboard'); } add_action('wp_dashboard_setup', 'register_widgets' ); ?>