Same Screen Options for all users (10 posts)

  1. schraegschrift
    Posted 6 years ago #

    I wanna have the same screen options checked or unchecked for all users with the role author. I did not find any option to do this.

    Where are the screen options stored? In the database?

  2. schraegschrift
    Posted 6 years ago #


    and the same for dashboard

    in wp_usermeta

  3. floodlightdesign
    Posted 6 years ago #

    schraegschrift - I am trying to do the same thing...

    Can you provide a little more information about how you accomplished this?

    I am looking at the wp_usermeta table in PHPMyAdmin and I found this entry for the admin username:

    16  	2  	metaboxhidden_dashboard  	a:4:{i:0;s:17:"dashboard_primary";i:1;s:19:"dashboard_secondary";i:2;s:24:"dashboard_incoming_links";i:3;s:17:"dashboard_plugins";}

    Problem is that the other usernames don't have this parameter. Do I just add a database item with their userID as the index? I wasn't clear on what the UmetaID index was for or how to generate that value.

    Thanks for your help!!


  4. floodlightdesign
    Posted 6 years ago #

    For the benefit of everyone...

    You can add a new database row with the desired value.

    The umeta_id value is just a unique key that you can set to whatever the next available number is.

    The user_id is the number of the user you'd like to change the screen options for.

    The meta_key name specifies which screen you'd like to change the options on. Looking through your database you should be able to figure out what meta_key controls which screen.

    Good luck!

  5. knuckle34
    Posted 6 years ago #

    A plugin for user specific screen options - controlled by admin would be fabulous.

  6. c-bass
    Posted 6 years ago #

    this would definately worth as a setting in wordpress working as a cms with multiple users. is there a easier workaround, plugin... available by now?

  7. tinwatchman
    Posted 6 years ago #

    Excuse me - is there any chance anyone could explain how the coding for Screen Options in the wp_usermeta works? (For instance - a:4:{i:0;s:17:"dashboard_primary";i:1;s:19:"dashboard_secondary";i:2;s:24:"dashboard_incoming_links";i:3;s:17:"dashboard_plugins";} translates to what?) I can't seem to dig up any documentation on this. Thanks!

  8. TexasTaxPayer
    Posted 6 years ago #

    I have foolishly removed "Admin" from the site admin administration settings. I can no longer get into the site admin panel. does anyone have a way to work around this?


  9. holmes221
    Posted 6 years ago #

    There is a hard but effective way to set Screen Options for all users.
    Found it here.


  10. bryan868
    Posted 5 years ago #

    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.

    This obviously becomes a problem when you have many users. I'm surprised this isn't a plugin yet.

Topic Closed

This topic has been closed to new replies.

About this Topic