• WP 2.7 is awesome, I love it! I’ve been able to do some great things with it. I’m hoping to be able to customize the user experience on the admin side a little bit though, so here goes…

    Currently, once users are logged in, they can select their screen options, meaning, they can pick and choose which modules show up for them on a given page. I was wondering if we could have default screen options. For example, I would like to hide the custom fields module, discussion module, and a few other modules on the Add New Post (post-new.php) page.

    I see that there is some information in the database in the usermeta table, which seems to be what I’m after, but how do I have default information here? Is this even where I would look?

    I’ve been pouring through code for a few days now, and if it’s a simple selection in the admin interface for the administrator to set this, I’m gonna be sad…

    Thanks in advance!

Viewing 2 replies - 16 through 17 (of 17 total)
  • All you need to do is sign-in as the user and then change their screen options. The options are stored in the database, so it will work when they sign in themselves.

    mendezki

    (@mendezki)

    Cool tip drincruz, thanks!

    ‘function unused_meta_boxes() {
    remove_meta_box(‘commentstatusdiv’,’post’,’normal’); // Comment Status
    remove_meta_box(‘commentstatusdiv’,’page’,’normal’); // Comment Status
    remove_meta_box(‘commentsdiv’,’post’,’normal’); // Comments
    remove_meta_box(‘commentsdiv’,’page’,’normal’); // Comments
    remove_meta_box(‘trackbacksdiv’,’post’,’normal’); // Trackbacks
    remove_meta_box(‘trackbacksdiv’,’page’,’normal’); // Trackbacks
    remove_meta_box(‘postcustom’,’post’,’normal’); // Custom Fields
    remove_meta_box(‘postcustom’,’page’,’normal’); // Custom Fields
    remove_meta_box(‘slugdiv’,’post’,’normal’); // Slug
    remove_meta_box(‘slugdiv’,’page’,’normal’); // Slug
    remove_meta_box(‘pageparentdiv’,’page’,’side’); // Page Parent etc.
    }

    add_action(‘admin_head’, ‘unused_meta_boxes’);’

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Default Screen Options’ is closed to new replies.