• Is there a way to set a default screen option for people who register for my site.. Anyone who registers has subscriber privileges (which is what I want them to have), but I don’t want the extra stuff on the dashboard being displayed like

    Incoming Links, The Frosty Network feeds View all QuickPress Recent Drafts WordPress Development Blog Other WordPress News Configure

    Only want it to display:

    Right Now Recent Comments

    I know that the user can click on screen options and check or uncheck what they want to view, but is there a way for me to set what they can check and uncheck?

Viewing 1 replies (of 1 total)
  • This will do the trick:

    <?php
    /*
    Plugin Name: Dashboard Screen Options
    Description: Hide meta boxes on Dashboard
    Version: 0.1
    */
    
    function dashboardscreenoptions($user_id){
    	$thisuser = get_userdata($user_id);
    	$dashboard = array('dashboard_incoming_links', 'dashboard_plugins', 'dashboard_quick_press', 'dashboard_stats', 'dashboard_recent_drafts', 'dashboard_primary', 'dashboard_secondary');
    	update_user_meta($thisuser->ID, 'metaboxhidden_dashboard', $dashboard);
    }
    add_action('user_register', 'dashboardscreenoptions');
    
    ?>

    Copy & paste this into a text document, save as dashboardscreenoptions.php and put it in your plugin-folder.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing defualt screen options’ is closed to new replies.